OpenSpace3D libs
OpenSpace 3D libraries for plugITs and OS3D developer
|
Functions | |
G2DformatHexaColor (s) | |
Add missed colors in hexa format. | |
G2DformatHexaColorI (c) | |
format color to hexadecimal value | |
G2Drgba2bgra (c) | |
Convert an rgba or bgra color to rgba or bgra color. | |
G2DgetAlphaFromColor (c) | |
get the alpha from a alpha color | |
G2DsetColorAlpha (c, a) | |
set the alpha of a color | |
G2Dbgra2bgr (c) | |
Convert an bgra or bgr color. | |
G2Drgba2rgb (c) | |
Convert an rgba or rgb color. | |
G2Dbgr2bgra (c, a) | |
Convert an bgr to bgra color. | |
G2Drgb2rgba (c, a) | |
Convert an rgb to rgba color. | |
G2Drgb2bgr (c) | |
Convert an rgb or bgr color to rgb or bgr color. | |
G2Dgetbgr (c) | |
Get bgr color. | |
G2Dgetrgb (c) | |
Get rgb color. | |
G2Dhsv2rgb (h, s, v) | |
Convert an hsv color to rgb color. | |
G2Drgb2hsv (c) | |
Convert an rgb color to hsv color. | |
G2DaddColor (c1, c2) | |
Add colors. | |
G2DsubColor (c1, c2) | |
Substract colors. | |
G2DmulColor (c1, c2) | |
Multiply colors. | |
G2DColorCoef (c1, coef) | |
Multiply a Color by coef. | |
Color manipulation
G2DformatHexaColor | ( | s | ) |
Add missed colors in hexa format.
Prototype: fun [S] S
S | : hexa color |
G2DformatHexaColorI | ( | c | ) |
format color to hexadecimal value
Prototype: fun [I] S
I | : color |
G2Drgba2bgra | ( | c | ) |
Convert an rgba or bgra color to rgba or bgra color.
Prototype: fun [I] I
I | : rgba or bgra color |
G2DgetAlphaFromColor | ( | c | ) |
get the alpha from a alpha color
Prototype: fun [I] I
I | : rgba or bgra color |
G2DsetColorAlpha | ( | c | , |
a | |||
) |
set the alpha of a color
Prototype: fun [I I] I
I | : rgba or bgra color |
I | : alpha |
G2Dbgra2bgr | ( | c | ) |
Convert an bgra or bgr color.
Prototype: fun [I] I
I | : bgr color |
G2Drgba2rgb | ( | c | ) |
Convert an rgba or rgb color.
Prototype: fun [I] I
I | : rgba color |
G2Dbgr2bgra | ( | c | , |
a | |||
) |
Convert an bgr to bgra color.
Prototype: fun [I I] I
I | : bgr color |
I | : alpha |
G2Drgb2rgba | ( | c | , |
a | |||
) |
Convert an rgb to rgba color.
Prototype: fun [I I] I
I | : rgb color |
I | : alpha |
G2Drgb2bgr | ( | c | ) |
Convert an rgb or bgr color to rgb or bgr color.
Prototype: fun [I] I
I | : rgb or bgr color |
G2Dgetbgr | ( | c | ) |
Get bgr color.
Prototype: fun [I] [I I I]
I | : rgb color or nil for black |
G2Dgetrgb | ( | c | ) |
Get rgb color.
Prototype: fun [I] [I I I]
I | : rgb color |
G2Dhsv2rgb | ( | h | , |
s | , | ||
v | |||
) |
Convert an hsv color to rgb color.
Prototype: fun [F F F] I
F | : h float |
F | : s float |
F | : v float |
G2Drgb2hsv | ( | c | ) |
Convert an rgb color to hsv color.
Prototype: fun [I] [F F F]
I | : rgb color |
G2DaddColor | ( | c1 | , |
c2 | |||
) |
Add colors.
Prototype: fun [I I] I
I | : color 1 |
I | : color 2 |
G2DsubColor | ( | c1 | , |
c2 | |||
) |
Substract colors.
Prototype: fun [I I] I
I | : color 1 |
I | : color 2 |
G2DmulColor | ( | c1 | , |
c2 | |||
) |
Multiply colors.
Prototype: fun [I I] I
I | : color 1 |
I | : color 2 |
G2DColorCoef | ( | c1 | , |
coef | |||
) |
Multiply a Color by coef.
Prototype: fun [I F] I
I | : RGB color |
F | : coef |