001 Action / RPG Maker


Color Functions

From Wiki001

Jump to: navigation, search

The color functions are used for manipulation of colors for some interesting effects.

Make Color

These functions generate a color based on the individual components, all values from 0 to 255, unless otherwise stated:

R
Red
G
Green
B
Blue
A
Alpha / Transparency
C
Cyan
M
Magenta
Y
Yellow
K
Black
H
Hue
S
Saturation
L
Luminosity

General

Modulate
Multiplies the individual components (red, green and blue) as if they were values between 0.0 and 1.0 of a color. This can reproduce the effects of lights.
Average
Determines the average of the individual components (red, green and blue) of two colors. This can be used to tint something a certain color. This has the exact same effect as using Linear Interpolate with a factor of 0.5.
Linear Interpolate
Returns the first color if the factor is 0, returns the second color if the factor is 1, and returns all the colors in between if the factor is a fraction.

Get Component

These functions will return individual components that may directly be used with the Make Color functions.

Personal tools