All Classes |Grouped Classes |Index

Class CL_Color

Color description class. More...

Derived from:

None

Derived by:

None

Group:

2D (Display)

#include <ClanLib/display.h>

Class Members:

Construction:

CL_Color

Constructs a color.


Attributes:

color

Color in ARGB8888 format.

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.

get_alpha_d

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

get_red_d

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

get_green_d

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

get_blue_d

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

get_alpha_f

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

get_red_f

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

get_green_f

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

get_blue_f

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

operator==

Color == Color operator (deep compare)

operator!=

Color != Color operator (deep compare)


Statics:

aliceblue

antiquewhite

aqua

aquamarine

azure

beige

bisque

black

blanchedalmond

blue

blueviolet

brown

burlywood

cadetblue

chartreuse

chocolate

coral

cornflowerblue

cornsilk

crimson

cyan

darkblue

darkcyan

darkgoldenrod

darkgray

darkgreen

darkgrey

darkkhaki

darkmagenta

darkolivegreen

darkorange

darkorchid

darkred

darksalmon

darkseagreen

darkslateblue

darkslategray

darkslategrey

darkturquoise

darkviolet

deeppink

deepskyblue

dimgray

dimgrey

dodgerblue

firebrick

floralwhite

forestgreen

fuchsia

gainsboro

ghostwhite

gold

goldenrod

gray

grey

green

greenyellow

honeydew

hotpink

indianred

indigo

ivory

khaki

lavender

lavenderblush

lawngreen

lemonchiffon

lightblue

lightcoral

lightcyan

lightgoldenrodyellow

lightgray

lightgreen

lightgrey

lightpink

lightsalmon

lightseagreen

lightskyblue

lightslategray

lightslategrey

lightsteelblue

lightyellow

lime

limegreen

linen

magenta

maroon

mediumaquamarine

mediumblue

mediumorchid

mediumpurple

mediumseagreen

mediumslateblue

mediumspringgreen

mediumturquoise

mediumvioletred

midnightblue

mintcream

mistyrose

moccasin

navajowhite

navy

oldlace

olive

olivedrab

orange

orangered

orchid

palegoldenrod

palegreen

paleturquoise

palevioletred

papayawhip

peachpuff

peru

pink

plum

powderblue

purple

red

rosybrown

royalblue

saddlebrown

salmon

sandybrown

seagreen

seashell

sienna

silver

skyblue

slateblue

slategray

slategrey

snow

springgreen

steelblue

tan

teal

thistle

tomato

turquoise

violet

wheat

white

whitesmoke

yellow

yellowgreen

transparent

rgba(0, 0, 0, 0).

gray10

gray20

gray30

gray40

gray50

gray60

gray70

gray80

gray90

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_alpha_d

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

set_red_d

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

set_green_d

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

set_blue_d

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

set_color

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

set_color_d

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