Module AS::Color
In: lib/as_color.rb

Base module used by Aerosol color classes.

Methods

*   +   -   apply_rgba   inverse_rgb   inverse_rgba   lerp   pack   to_rgb  

Classes and Modules

Class AS::Color::HSV
Class AS::Color::RGB

Constants

Black = RGB.new(0, 0, 0)
White = RGB.new(1, 1, 1)
Red = RGB.new(1, 0, 0)
Green = RGB.new(0, 1, 0)
Blue = RGB.new(0, 0, 1)
Yellow = RGB.new(1, 1, 0)
Magenta = RGB.new(1, 0, 1)
Cyan = RGB.new(0, 1, 1)

Public Instance methods

Apply a block to each pair of components.

Linear interpolation between two colors.

Returns a AS::PackedColor for this color.

Returns the RGB color components.

[Validate]