RageColor

From SMTheming Wiki

Jump to: navigation, search

RageColor is a data type defined by StepMania, used for coloring Actors. A RageColor has four values: Red, Green, Blue, and Alpha (transparency).

A RageColor can be expressed as a set of four floats or as a single hexadecimal with four values (similar to HTML formatting, but including alpha).

Usage

StepMania 3.9

When used as an argument to a Command, a RageColor is expressed as R,G,B,A.

For example, to set an object 50% red, 100% green, 70% blue, and 100% visible, you would use diffuse,0.5,1,0.7,1.

To express this in hexadecimal, you would use diffuse,#80FFB3FF.

StepMania 4.0

A RageColor is used with the syntax color("R,G,B,A") or color("#RRGGBBAA"). Otherwise, usage is the same.

Setting the above example would be expressed as diffuse,color("0.5,1,0.7,0.1") or diffuse,color("#80FFB3FF").

Personal tools