My favorites | Sign in
Logo
             
Search
for
Updated Aug 30, 2009 by senocular
Labels: Phase-Implementation
AboutColors  
Learn more about using Colors in Avatar Core.

(Last updated for ver 0.2.0)

Colors in Avatar Core are used to change the color of Feature Art. They are based off of flash.geom.ColorTransform and can add to or multiply any red, green, blue, or alpha channel within Art graphics.

API: Color Class

In This Document

Colors in Features

Color objects, like Art objects, are defined in Features. Feature.color stores any color transform to be applied to the Art. When null, no color changes are made.

Unlike Adjust objects, Colors are not inherited through parent Features.

Color changes do not affect Art whose colorize properties are 0.

Color Values

Color can be set directly using the Color.color property or through the individual offset or multiplier values. Color.color maps directly to the offsets.

When Color is applied to Art assets, the following formula is used for each pixel used to render the graphics.

Where to go from here


Sign in to add a comment
Hosted by Google Code