SAGA API
v9.6
|
Go to the source code of this file.
Macros | |
#define | COLORS_SERIAL_VERSION_BINARY "SAGA_COLORPALETTE_VERSION_0.100_BINARY" |
#define | COLORS_SERIAL_VERSION__ASCII "SAGA_COLORPALETTE_VERSION_0.100__ASCII" |
Functions | |
CSG_String | SG_Colors_Get_Name (int Index) |
long | SG_Color_Get_Random (void) |
long | SG_Color_From_RGB (int Red, int Green, int Blue, int Alpha) |
bool | SG_Color_From_Text (const CSG_String &Text, long &Color) |
CSG_String | SG_Color_To_Text (long Color, bool bHexadecimal) |
#define COLORS_SERIAL_VERSION__ASCII "SAGA_COLORPALETTE_VERSION_0.100__ASCII" |
Definition at line 1055 of file api_colors.cpp.
#define COLORS_SERIAL_VERSION_BINARY "SAGA_COLORPALETTE_VERSION_0.100_BINARY" |
Definition at line 1054 of file api_colors.cpp.
long SG_Color_From_RGB | ( | int | Red, |
int | Green, | ||
int | Blue, | ||
int | Alpha | ||
) |
Definition at line 79 of file api_colors.cpp.
References SG_GET_RGBA.
bool SG_Color_From_Text | ( | const CSG_String & | Text, |
long & | Color | ||
) |
Definition at line 85 of file api_colors.cpp.
References CSG_String::b_str(), CSG_String::Get_Char(), CSG_String::is_Empty(), CSG_String::Length(), SG_GET_RGB, and SG_GET_RGBA.
Referenced by CSG_Parameter_Color::_Set_Value().
long SG_Color_Get_Random | ( | void | ) |
Definition at line 73 of file api_colors.cpp.
References CSG_Random::Get_Uniform(), and SG_GET_RGB.
CSG_String SG_Color_To_Text | ( | long | Color, |
bool | bHexadecimal | ||
) |
Definition at line 144 of file api_colors.cpp.
References CSG_String::Printf(), SG_GET_B, SG_GET_G, and SG_GET_R.
CSG_String SG_Colors_Get_Name | ( | int | Index | ) |
Definition at line 67 of file api_colors.cpp.
References CSG_Colors::Get_Predefined_Name().