prg_color_from_string()
Abstract
Creates a color object from a string representation.
Syntax
prg_color_from_string (color_str)
| Argument | Type | Description |
|---|---|---|
color_str |
const char * |
Color string (see Details). |
Return Type
PrgT_Color
The requested color.
Header
prg_color.h
Details
This function creates a color definition from a color name string. The string can specify a color in any of three formats:
- “#
rrggbb” (24-bit color scheme, whererr,gg, andbbare hexadecimal numbers 00–FF) - “RGB
rgb” (64-color scheme, wherer,g, andbare 0–3) - Color name
The color can be used by any function requiring a PrgT_Color argument.