L3DT documentation
Large 3D terrain generator

calc_AM_GetPixelColour

This function has been removed from the core API, and is now available via the 'calc.AM.GetPixelColour' zeofunc.

Description

Get the display colour of a pixel value in an attributes map.

Function prototype

COLORREF CExtAPI::calc_AM_GetPixelColour(AttributesPixel AMpxl);

Arguments

Name Type Comment
AMpxl AttributesPixel A pixel value from an attributes map, the display colour of which is to be determined.

Return value

A Windows COLORREF structure containing the colour of the land type. A value of magenta {R,G,B} = {255, 0, 255} is returned in the case of an error, as this colour is too putrid to use for any other purpose. When you see magenta, you know something is wrong!

Comments

This function is used when displaying the attributes maps on the screen, or when saving it to disk in colour-mapped mode.

 
zeolite/functions/calc_am_getpixelcolour.txt · Last modified: 2017/08/31 06:29 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki