Home | All Classes | Grouped Classes | Index | Search

Class CL_Color

Color description class. More...

Derived from: none
Derived by: none
Group: Display (Display 2D)

#include <ClanLib/display.h>

Construction:

CL_Color

Constructs a color.

Attributes:

get_alpha

Returns the alpha color component, in the range 0-255.

get_red

Returns the red color component, in the range 0-255.

get_green

Returns the green color component, in the range 0-255.

get_blue

Returns the blue color component, in the range 0-255.

color

Color in ARGB8888 format.

operator ==

Color == Color operator (deep compare)

operator !=

Color != Color operator (deep compare)

Statics:

aliceblue static

rgb(240, 248, 255).

antiquewhite static

rgb(250, 235, 215).

aqua static

rgb( 0, 255, 255).

aquamarine static

rgb(127, 255, 212).

azure static

rgb(240, 255, 255).

beige static

rgb(245, 245, 220).

bisque static

rgb(255, 228, 196).

black static

rgb( 0, 0, 0).

blanchedalmond static

rgb(255, 235, 205).

blue static

rgb( 0, 0, 255).

blueviolet static

rgb(138, 43, 226).

brown static

rgb(165, 42, 42).

burlywood static

rgb(222, 184, 135).

cadetblue static

rgb( 95, 158, 160).

chartreuse static

rgb(127, 255, 0).

chocolate static

rgb(210, 105, 30).

coral static

rgb(255, 127, 80).

cornflowerblue static

rgb(100, 149, 237).

cornsilk static

rgb(255, 248, 220).

crimson static

rgb(220, 20, 60).

cyan static

rgb( 0, 255, 255).

darkblue static

rgb( 0, 0, 139).

darkcyan static

rgb( 0, 139, 139).

darkgoldenrod static

rgb(184, 134, 11).

darkgray static

rgb(169, 169, 169).

darkgreen static

rgb( 0, 100, 0).

darkgrey static

rgb(169, 169, 169).

darkkhaki static

rgb(189, 183, 107).

darkmagenta static

rgb(139, 0, 139).

darkolivegreen static

rgb( 85, 107, 47).

darkorange static

rgb(255, 140, 0).

darkorchid static

rgb(153, 50, 204).

darkred static

rgb(139, 0, 0).

darksalmon static

rgb(233, 150, 122).

darkseagreen static

rgb(143, 188, 143).

darkslateblue static

rgb( 72, 61, 139).

darkslategray static

rgb( 47, 79, 79).

darkslategrey static

rgb( 47, 79, 79).

darkturquoise static

rgb( 0, 206, 209).

darkviolet static

rgb(148, 0, 211).

deeppink static

rgb(255, 20, 147).

deepskyblue static

rgb( 0, 191, 255).

dimgray static

rgb(105, 105, 105).

dimgrey static

rgb(105, 105, 105).

dodgerblue static

rgb( 30, 144, 255).

firebrick static

rgb(178, 34, 34).

floralwhite static

rgb(255, 250, 240).

forestgreen static

rgb( 34, 139, 34).

fuchsia static

rgb(255, 0, 255).

gainsboro static

rgb(220, 220, 220).

ghostwhite static

rgb(248, 248, 255).

gold static

rgb(255, 215, 0).

goldenrod static

rgb(218, 165, 32).

gray static

rgb(128, 128, 128).

grey static

rgb(128, 128, 128).

green static

rgb( 0, 128, 0).

greenyellow static

rgb(173, 255, 47).

honeydew static

rgb(240, 255, 240).

hotpink static

rgb(255, 105, 180).

indianred static

rgb(205, 92, 92).

indigo static

rgb( 75, 0, 130).

ivory static

rgb(255, 255, 240).

khaki static

rgb(240, 230, 140).

lavender static

rgb(230, 230, 250).

lavenderblush static

rgb(255, 240, 245).

lawngreen static

rgb(124, 252, 0).

lemonchiffon static

rgb(255, 250, 205).

lightblue static

rgb(173, 216, 230).

lightcoral static

rgb(240, 128, 128).

lightcyan static

rgb(224, 255, 255).

lightgoldenrodyellow static

rgb(250, 250, 210).

lightgray static

rgb(211, 211, 211).

lightgreen static

rgb(144, 238, 144).

lightgrey static

rgb(211, 211, 211).

lightpink static

rgb(255, 182, 193).

lightsalmon static

rgb(255, 160, 122).

lightseagreen static

rgb( 32, 178, 170).

lightskyblue static

rgb(135, 206, 250).

lightslategray static

rgb(119, 136, 153).

lightslategrey static

rgb(119, 136, 153).

lightsteelblue static

rgb(176, 196, 222).

lightyellow static

rgb(255, 255, 224).

lime static

rgb( 0, 255, 0).

limegreen static

rgb( 50, 205, 50).

linen static

rgb(250, 240, 230).

magenta static

rgb(255, 0, 255).

maroon static

rgb(128, 0, 0).

mediumaquamarine static

rgb(102, 205, 170).

mediumblue static

rgb( 0, 0, 205).

mediumorchid static

rgb(186, 85, 211).

mediumpurple static

rgb(147, 112, 219).

mediumseagreen static

rgb( 60, 179, 113).

mediumslateblue static

rgb(123, 104, 238).

mediumspringgreen static

rgb( 0, 250, 154).

mediumturquoise static

rgb( 72, 209, 204).

mediumvioletred static

rgb(199, 21, 133).

midnightblue static

rgb( 25, 25, 112).

mintcream static

rgb(245, 255, 250).

mistyrose static

rgb(255, 228, 225).

moccasin static

rgb(255, 228, 181).

navajowhite static

rgb(255, 222, 173).

navy static

rgb( 0, 0, 128).

oldlace static

rgb(253, 245, 230).

olive static

rgb(128, 128, 0).

olivedrab static

rgb(107, 142, 35).

orange static

rgb(255, 165, 0).

orangered static

rgb(255, 69, 0).

orchid static

rgb(218, 112, 214).

palegoldenrod static

rgb(238, 232, 170).

palegreen static

rgb(152, 251, 152).

paleturquoise static

rgb(175, 238, 238).

palevioletred static

rgb(219, 112, 147).

papayawhip static

rgb(255, 239, 213).

peachpuff static

rgb(255, 218, 185).

peru static

rgb(205, 133, 63).

pink static

rgb(255, 192, 203).

plum static

rgb(221, 160, 221).

powderblue static

rgb(176, 224, 230).

purple static

rgb(128, 0, 128).

red static

rgb(255, 0, 0).

rosybrown static

rgb(188, 143, 143).

royalblue static

rgb( 65, 105, 225).

saddlebrown static

rgb(139, 69, 19).

salmon static

rgb(250, 128, 114).

sandybrown static

rgb(244, 164, 96).

seagreen static

rgb( 46, 139, 87).

seashell static

rgb(255, 245, 238).

sienna static

rgb(160, 82, 45).

silver static

rgb(192, 192, 192).

skyblue static

rgb(135, 206, 235).

slateblue static

rgb(106, 90, 205).

slategray static

rgb(112, 128, 144).

slategrey static

rgb(112, 128, 144).

snow static

rgb(255, 250, 250).

springgreen static

rgb( 0, 255, 127).

steelblue static

rgb( 70, 130, 180).

tan static

rgb(210, 180, 140).

teal static

rgb( 0, 128, 128).

thistle static

rgb(216, 191, 216).

tomato static

rgb(255, 99, 71).

turquoise static

rgb( 64, 224, 208).

violet static

rgb(238, 130, 238).

wheat static

rgb(245, 222, 179).

white static

rgb(255, 255, 255).

whitesmoke static

rgb(245, 245, 245).

yellow static

rgb(255, 255, 0).

yellowgreen static

rgb(154, 205, 50).

find_color

Find and returns the static color matching a string.

get_names

Returns the names of static colors defined.

Operations:

set_alpha

Set alpha color component, in the range 0-255.

set_red

Set red color component, in the range 0-255.

set_green

Set green color component, in the range 0-255.

set_blue

Set blue color component, in the range 0-255.

set_color

Set color based on rgba color components in the range 0-255.

to_pixelformat

Converts the color to a given pixel format.

from_pixelformat

Converts a raw pixel in a given pixel format to a color.

Detailed description:

!group=Display/Display 2D! !header=display.h!


Questions or comments, write to the
ClanLib mailing list.