Scaleform Studio Lua API Reference: scaleform.Cxform object reference

scaleform.Cxform object reference

Description

A color transform class that modifies all pixels being rendered.

Functions

Parameters

self :

scaleform.Cxform

The color transform currently in use.

Returns

number

The alpha multiplier value.

Parameters

self :

scaleform.Cxform

The color transform currently in use.

Returns

integer

The alpha offset value [0-255].

Parameters

self :

scaleform.Cxform

The color transform currently in use.

cxformParent :

scaleform.Cxform

The color transform to multiply to.

Returns
This function does not return any values.
Parameters

self :

scaleform.Cxform

The color transform currently in use.

Returns

number

The blue multiplier value.

Parameters

self :

scaleform.Cxform

The color transform currently in use.

Returns

integer

The blue offset value [0-255].

Parameters

self :

scaleform.Cxform

The color transform.

Returns

scaleform.Cxform

The cloned Cxform object.

Parameters

self :

scaleform.Cxform

The color transform currently in use.

Returns

scaleform.Color

The color.

Parameters

self :

scaleform.Cxform

The color transform currently in use.

Returns

table

A 2x4 array of arrays of numbers

Parameters

dst :

scaleform.Cxform

The destination color transform.

src :

scaleform.Cxform

The source color transform

Returns
This function does not return any values.
Parameters

color :

scaleform.Color?

An color offset to initialize the cxform with.

The ? notation indicates that this type is optional: there may be zero or one instances of it.
Returns

scaleform.Cxform

The newly created color transform.

Parameters

a :

number

The alpha multiplier added to the color transform.

Returns

scaleform.Cxform

The modified color transform.

Parameters

b :

number

Brightness value.

Returns

scaleform.Cxform

The modified color transform.

Parameters

t :

number

The tint value.

r :

number

The red color value.

g :

number

The green color value.

b :

number

The blue color value.

Returns

scaleform.Cxform

The modified color transform.

Parameters

self :

scaleform.Cxform

The color transform currently in use.

Returns

number

The green multiplier value.

Parameters

self :

scaleform.Cxform

The color transform currently in use.

Returns

integer

The green offset value [0-255].

Parameters

self :

scaleform.Cxform

The color transform currently in use.

Returns

boolean

Whether the cxform is an identity color transformation matrix or not.

Parameters

self :

scaleform.Cxform

The color transform currently in use.

Returns
This function does not return any values.
Parameters

self :

scaleform.Cxform

The color transform currently in use.

cxformParent :

scaleform.Cxform

The color matrix to multiply.

Returns
This function does not return any values.
Parameters

self :

scaleform.Cxform

The color transform currently in use.

Returns

number

The red multiplier value.

Parameters

self :

scaleform.Cxform

The color transform currently in use.

Returns

integer

The red offset value [0-255].

Parameters

self :

scaleform.Cxform

The color transform currently in use.

Returns

boolean

Whether blending is disabled or not.

Parameters

self :

scaleform.Cxform

The color transform currently in use.

am :

number

A decimal value that is multiplied with the alpha transparency channel value, as a decimal value between 0 and 1.

Returns
This function does not return any values.
Parameters

self :

scaleform.Cxform

The color transform currently in use.

ao :

integer

The alpha offset value [0-255];

Returns
This function does not return any values.
Parameters

self :

scaleform.Cxform

The color transform currently in use.

bm :

number

The percentage to apply the color, as a decimal value between 0 and 1.

Returns
This function does not return any values.
Parameters

self :

scaleform.Cxform

The color transform currently in use.

bo :

integer

The blue offset value [0-255].

Returns
This function does not return any values.
Parameters

self :

scaleform.Cxform

The color transform currently in use.

c :

scaleform.Color

A color whose components set those of the current color.

Returns
This function does not return any values.
Parameters

self :

scaleform.Cxform

The color transform currently in use.

gm :

number

The green multiplier value.

Returns
This function does not return any values.
Parameters

self :

scaleform.Cxform

The color transform currently in use.

go :

integer

The green offset value [0-255].

Returns
This function does not return any values.
Parameters

self :

scaleform.Cxform

The color transform currently in use.

Returns
This function does not return any values.
Parameters

self :

scaleform.Cxform

The color transform currently in use.

rm :

number

The percentage to apply the color, as a decimal value between 0 and 1.

Returns
This function does not return any values.
Parameters

self :

scaleform.Cxform

The color transform currently in use.

ro :

integer

The red offset value [0-255].

Returns
This function does not return any values.
Parameters

self :

scaleform.Cxform

The color transform currently in use.

c0 :

scaleform.Cxform

The color matrix to append.

c1 :

scaleform.Cxform

The parent color matrix.

Returns
This function does not return any values.
Parameters

self :

scaleform.Cxform

The color transform currently in use.

newColor :

scaleform.Color

A color value that needs to be transformed.

Returns

scaleform.Color

The transformed color.

Transforming a color involves multiplying it by a scale factor and adding an offset factor. The result of the color transform is clamped to the target color numeric range.

 scaleform.Actor.cxform (self) : scaleform.Cxform
Returns the color transformation matrix applied on the actor.
 scaleform.Actor.world_cxform (self) : scaleform.Cxform
Returns the concatenated color transform matrix (all ancestor transforms, times the matrix).
 scaleform.Cxform.clone (self) : scaleform.Cxform
Clones the color transform object.
 scaleform.Cxform.create (color) : scaleform.Cxform
Creates a new color transform object.
 scaleform.Cxform.create_alpha (a) : scaleform.Cxform
Adds an alpha value to the color transform.
 scaleform.Cxform.create_brightness (b) : scaleform.Cxform
Applies a brightness to the color transform.
 scaleform.Cxform.create_tint (t, r, g, b) : scaleform.Cxform
Applies tint color.
 scaleform.Actor.concatenate_cxform (self, cxform)
Concatenates the color transform to the actor.
 scaleform.Actor.set_cxform (self, cxform)
Sets the color transformation matrix on the actor.
 scaleform.Cxform.alpha_multiplier (self) : number
Returns the alpha multiplier value set for color transformation.
 self : scaleform.Cxform
The color transform currently in use.
 number  scaleform.Cxform
A color transform class that modifies all pixels being rendered.
A numeric value.  scaleform.Cxform.alpha_offset (self) : integer
Returns the offset value set to the alpha channel value.
 self : scaleform.Cxform
The color transform currently in use.
 integerA strictly integral numeric value, with no decimal component.  scaleform.Cxform.append (self, cxformParent)
Appends the color transformation matrix by multiplying the specified Cxform by the current Cxform and assigns the result to the first Cxform.
 self : scaleform.Cxform
The color transform currently in use.
 cxformParent : scaleform.Cxform
The color transform to multiply to.
 scaleform.Cxform.blue_multiplier (self) : number
Returns the blue multiplier value set for color transformation.
 self : scaleform.Cxform
The color transform currently in use.
 number  scaleform.Cxform.blue_offset (self) : integer
Returns the offset value set to the blue channel value.
 self : scaleform.Cxform
The color transform currently in use.
 integer  self : scaleform.Cxform
The color transform.
 scaleform.Cxform
The cloned Cxform object.
 scaleform.Cxform.color (self) : scaleform.Color
Returns the color of the transform.
 self : scaleform.Cxform
The color transform currently in use.
 scaleform.Color
The color.
 scaleform.Color

{ alpha : integer, blue : integer, green : integer, red : integer, }
 scaleform.Cxform.convert_to_table (self) : table
Copies the color transformation matrix into an table.
 self : scaleform.Cxform
The color transform currently in use.
 table
A 2x4 array of arrays of numbers
A Lua table consisting of paired keys and values.  scaleform.Cxform.copy (dst, src)
Copies a color transform to another one.
 dst : scaleform.Cxform
The destination color transform.
 src : scaleform.Cxform
The source color transform
 color : scaleform.Color?
An color offset to initialize the cxform with.
The ? notation indicates that this type is optional: there may be zero or one instances of it.
 scaleform.Cxform
The newly created color transform.
 a : number
The alpha multiplier added to the color transform.
 scaleform.Cxform
The modified color transform.
 b : number
Brightness value.
 scaleform.Cxform
The modified color transform.
 t : number
The tint value.
 r : number
The red color value.
 g : number
The green color value.
 b : number
The blue color value.
 scaleform.Cxform
The modified color transform.
 scaleform.Cxform.green_multiplier (self) : number
Returns the green multiplier value set for color transformation.
 self : scaleform.Cxform
The color transform currently in use.
 number  scaleform.Cxform.green_offset (self) : integer
Returns the offset value set to the green channel value.
 self : scaleform.Cxform
The color transform currently in use.
 integer  scaleform.Cxform.is_identity (self) : boolean
Determines if the Cxform is identity color transformation matrix.
 self : scaleform.Cxform
The color transform currently in use.
 booleantrue or false.  scaleform.Cxform.normalize (self)
Creates a normalized color transformation matrix.
 self : scaleform.Cxform
The color transform currently in use.
 scaleform.Cxform.prepend (self, cxformParent)
Prepend a color transform matrix onto this current matrix by multiplying the current matrix by the passed Cxform.
 self : scaleform.Cxform
The color transform currently in use.
 cxformParent : scaleform.Cxform
The color matrix to multiply.
 scaleform.Cxform.red_multiplier (self) : number
Returns the red multiplier value set for color transformation.
 self : scaleform.Cxform
The color transform currently in use.
 number  scaleform.Cxform.red_offset (self) : integer
Returns the offset value set to the red channel value.
 self : scaleform.Cxform
The color transform currently in use.
 integer  scaleform.Cxform.requires_blend (self) : boolean
Disables blending when not required.
 self : scaleform.Cxform
The color transform currently in use.
 boolean  scaleform.Cxform.set_alpha_multiplier (self, am)
Sets the alpha multiplier for the color.
 self : scaleform.Cxform
The color transform currently in use.
 am : number
A decimal value that is multiplied with the alpha transparency channel value, as a decimal value between 0 and 1.
 scaleform.Cxform.set_alpha_offset (self, ao)
Sets an offset value to the alpha channel value.
 self : scaleform.Cxform
The color transform currently in use.
 ao : integer
The alpha offset value [0-255];
 scaleform.Cxform.set_blue_multiplier (self, bm)
Sets the blue multiplier for the color.
 self : scaleform.Cxform
The color transform currently in use.
 bm : number
The percentage to apply the color, as a decimal value between 0 and 1.
 scaleform.Cxform.set_blue_offset (self, bo)
Sets an offset value to the blue channel value.
 self : scaleform.Cxform
The color transform currently in use.
 bo : integer
The blue offset value [0-255].
 scaleform.Cxform.set_color (self, c)
Initializes the red, green, blue, and alpha components of the current color.
 self : scaleform.Cxform
The color transform currently in use.
 c : scaleform.Color
A color whose components set those of the current color.
 scaleform.Cxform.set_green_multiplier (self, gm)
Sets the green multiplier for the color.
 self : scaleform.Cxform
The color transform currently in use.
 gm : number
The green multiplier value.
 scaleform.Cxform.set_green_offset (self, go)
Sets an offset value to the green channel value.
 self : scaleform.Cxform
The color transform currently in use.
 go : integer
The green offset value [0-255].
 scaleform.Cxform.set_identity (self)
Sets the color transform matrix to identity color transformation matrix.
 self : scaleform.Cxform
The color transform currently in use.
 scaleform.Cxform.set_red_multiplier (self, rm)
Sets the red multiplier for the color.
 self : scaleform.Cxform
The color transform currently in use.
 rm : number
The percentage to apply the color, as a decimal value between 0 and 1.
 scaleform.Cxform.set_red_offset (self, ro)
Sets an offset value to the red channel value.
 self : scaleform.Cxform
The color transform currently in use.
 ro : integer
The red offset value [0-255].
 scaleform.Cxform.set_to_append (self, c0, c1)
Initializes the current color matrix to the result of appended matrices.
 self : scaleform.Cxform
The color transform currently in use.
 c0 : scaleform.Cxform
The color matrix to append.
 c1 : scaleform.Cxform
The parent color matrix.
 scaleform.Cxform.transform (self, newColor) : scaleform.Color
Applies a color transform to the specified color.
 self : scaleform.Cxform
The color transform currently in use.
 newColor : scaleform.Color
A color value that needs to be transformed.
 scaleform.Color
The transformed color.
 self : scaleform.Actor
The actor whose color transformation is retrieved.
 scaleform.Cxform
The color transformation matrix.
 self : scaleform.Actor
The actor whose color transform matrix is retrieved.
 scaleform.Cxform
The concatenated color world matrix.
 self : scaleform.Actor
The actor to which color transformation is concatenated.
 cxform : scaleform.Cxform
The color transform matrix to concatenate.
 self : scaleform.Actor
The actor to which a color transformation is applied.
 cxform : scaleform.Cxform
The color transform matrix value.
 scaleform.Actor
Generic objects located in a scene.
Indicates a table.
This documentation uses the term table to mean an anonymous, temporary Lua table that contains named data values. You typically use these tables to pass data or settings to a function, or to hold data returned by a function.
Indicates an object.
This documentation uses the term object to mean a named Lua table or userdata value that maintains a state. Some object types may have multiple instances existing at the same time, each with its own state; these objects typically have creation functions or accessors that you must call in order to get an instance. Some object types have only one instance, which you always access through the object's name.
Indicates a named variable within a namespace, object or table; or an element within an enumeration.Indicates a code sample.Indicates an enumeration.
This documentation uses the term enumeration to mean a named Lua table that contains only a set of constant values. These values typically identify a predefined set of options for some setting or behavior. You might pass an enumeration value to a function, or test the value returned by a function against the items in the enumeration to see which option is currently set.
Indicates a named variable within a namespace or object that has a pre-set constant value.Indicates a category: a semantic grouping of related API elements.Indicates a namespace.
This documentation uses the term namespace to mean a named Lua table that exists in only one single instance, intended as a container for an interface of related objects, functions and data variables.
Indicates an output value returned by a function.Indicates a named function within a namespace or object.Indicates an input parameter for a function.