Color
Object Hierarchy:
Description:
[ SimpleType ]
public struct Color : uint32
32-bit integer for storing color information.
The lower 24 bits are the actual color value and the upper 8 bits are the ColorMode.
Content:
Constants:
Properties:
Static methods:
- public static Color build_rgb (uint8 r, uint8 g, uint8 b)
Build a RGB color value based on the current graphics mode.
- public static Color build_rgb_round (uint8 r, uint8 g, uint8 b)
Build a RGB color value based on the current graphics mode.
- public static Color build_grayscale (uint8 r, uint8 g, uint8 b)
Build a grayscale color value based on the current graphics mode.
- public static Color @get (uint8 r, uint8 g, uint8 b)
Gets a color based on the RGB value.
- public static Color get_inline (uint8 r, uint8 g, uint8 b)
Gets a color in the color table based on the RGB value.
- public static Color get2 (uint hcolor)
Gets a color in the color table based on hcolor
.
- public static Color get2_inline (uint hcolor)
Gets a color in the color table based on hcolor
.
- public static Color lookup (Array<Color> table, uint index)
Looks up a color in the color table.
- public static unowned Color[] get_ega_colors ()
Methods:
- public Color to_write_mode ()
- public Color to_xor_mode ()
- public Color to_or_mode ()
- public Color to_and_mode ()
- public Color to_image_mode ()
- public void put ()
Releases a color that was obtained by
@get and friends.
- public void query (Color c, out uint8 r, out uint8 g, out uint8 b)
Gets the RGB color components of a color.
- public void query_inline (Color c, out uint8 r, out uint8 g, out uint8 b)
Gets the RGB color components of a color.
- public void query2 (Color c, out uint hcolor)
Gets the RGB color components of a color.
- public void query2_inline (Color c, out uint hcolor)
Gets the RGB color components of a color.
Inherited Members:
All known members inherited from struct uint32
- MIN
- MAX
- FORMAT
- FORMAT_MODIFIER
- min
- max
- from_big_endian
- from_little_endian
- to_network
- from_network
- to_string
- clamp
- to_big_endian
- to_little_endian
- swap_big_endian_pdp
- swap_little_endian_big_endian
- swap_little_endian_pdp