Functions | |
NIL | color.loadpalette () |
Loads a palette of 17 basic colors, ready to use (see example). Colors are: More... | |
COLOR | color.new (NUMBER R, NUMBER G, NUMBER B) |
Creates a new solid color from the specified values (from 0 to 255 for each channel). More... | |
COLOR | color.new (NUMBER R, NUMBER G, NUMBER B, NUMBER A) |
Creates a new semitransparent color from the specified values (from 0 to 255 for each channel). More... | |
COLOR | color.blend (COLOR c1, COLOR c2) |
Mix two colors. More... | |
COLOR | color.mix (COLOR c1, COLOR c2, NUMBER percent1, NUMBER percent2) |
Brief two blend colors using the given percentages. More... | |
COLOR | color.add (COLOR c1, COLOR c2) |
IAddition two colors. More... | |
COLOR | color.sub (COLOR c1, COLOR c2) |
Subtracts two colors. More... | |
COLOR | color.fxgray (COLOR myColor) |
Converts a color to gray scale. More... | |
COLOR | color.fxinvert (COLOR myColor) |
Converts a color to its inverted State. More... | |
NUMBER | color.r (COLOR myColor) |
Obtains the red channel value of the specified color. More... | |
COLOR | color.r (COLOR myColor, NUMBER value) |
Modifies the red channel value of the specified color. More... | |
NUMBER | color.g (COLOR myColor) |
Obtains the green channel value of the specified color. More... | |
COLOR | color.g (COLOR myColor, NUMBER value) |
Modifies the green channel value of the specified color. More... | |
NUMBER | color.b (COLOR myColor) |
Obtains the blue channel value of the specified color. More... | |
COLOR | color.b (COLOR myColor, NUMBER value) |
Modifies the blue channel value of the specified color. More... | |
NUMBER | color.a (COLOR myColor) |
Obtains the alpha channel value of the specified color. More... | |
COLOR | color.a (COLOR myColor, NUMBER value) |
Modifies the alpha channel value of the specified color. More... | |
Color managing.
NIL color.loadpalette | ( | ) |
Loads a palette of 17 basic colors, ready to use (see example). Colors are:
COLOR color.new | ( | NUMBER | R, |
NUMBER | G, | ||
NUMBER | B | ||
) |
Creates a new solid color from the specified values (from 0 to 255 for each channel).
R | Red channel value. |
G | Green channel value. |
B | Blue channel value. |
COLOR color.new | ( | NUMBER | R, |
NUMBER | G, | ||
NUMBER | B, | ||
NUMBER | A | ||
) |
Creates a new semitransparent color from the specified values (from 0 to 255 for each channel).
R | Red channel value. |
G | Green channel value. |
B | Blue channel value. |
A | Alpha channel value (transparency). |
COLOR color.blend | ( | COLOR | c1, |
COLOR | c2 | ||
) |
Mix two colors.
c1 | Color one. |
c2 | Color two. |
COLOR color.mix | ( | COLOR | c1, |
COLOR | c2, | ||
NUMBER | percent1, | ||
NUMBER | percent2 | ||
) |
Brief two blend colors using the given percentages.
c1 | Color one. |
c2 | Color two. |
percent1 | Percentage of Color one. |
percent2 | Percentage of Color two. |
COLOR color.add | ( | COLOR | c1, |
COLOR | c2 | ||
) |
IAddition two colors.
c1 | Color one. |
c2 | Color two. |
COLOR color.sub | ( | COLOR | c1, |
COLOR | c2 | ||
) |
Subtracts two colors.
c1 | Color one. |
c2 | Color two. |
COLOR color.fxgray | ( | COLOR | myColor | ) |
Converts a color to gray scale.
myColor | a color to process. |
COLOR color.fxinvert | ( | COLOR | myColor | ) |
Converts a color to its inverted State.
myColor | a color to process. |
NUMBER color.r | ( | COLOR | myColor | ) |
Obtains the red channel value of the specified color.
myColor | a color to process. |
COLOR color.r | ( | COLOR | myColor, |
NUMBER | value | ||
) |
Modifies the red channel value of the specified color.
myColor | a color to process. |
value | The new value for the red channel. |
NUMBER color.g | ( | COLOR | myColor | ) |
Obtains the green channel value of the specified color.
myColor | a color to process. |
COLOR color.g | ( | COLOR | myColor, |
NUMBER | value | ||
) |
Modifies the green channel value of the specified color.
myColor | a color to process. |
value | The new value for the green channel. |
NUMBER color.b | ( | COLOR | myColor | ) |
Obtains the blue channel value of the specified color.
myColor | a color to process. |
COLOR color.b | ( | COLOR | myColor, |
NUMBER | value | ||
) |
Modifies the blue channel value of the specified color.
myColor | a color to process. |
value | The new value for the blue channel. |
NUMBER color.a | ( | COLOR | myColor | ) |
Obtains the alpha channel value of the specified color.
myColor | a color to process. |
COLOR color.a | ( | COLOR | myColor, |
NUMBER | value | ||
) |
Modifies the alpha channel value of the specified color.
myColor | a color to process. |
value | The new value for the alpha channel. |