Scaleform Studio Lua API Reference: scaleform.Cxform object reference
         
	
    
    
A color transform class that modifies all pixels being rendered.
							
							Parameters Returns | number | The alpha multiplier value. | 
							  
							
							Parameters Returns | integer | The alpha offset value [0-255]. | 
							  
							
							Parameters Returns |  | This function does not return any values. | 
							  
							
							Parameters Returns | number | The blue multiplier value. | 
							  
							
							Parameters Returns | integer | The blue offset value [0-255]. | 
							  
							
							Parameters Returns | table | A 2x4 array of arrays of numbers | 
							  
							
							Parameters 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 
							  
							
							Parameters | a : | number | The alpha multiplier added to the color transform. | 
Returns 
							  
							
							Parameters | b : | number | Brightness value. | 
Returns 
							  
							
							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 
							  
							
							Parameters Returns | number | The green multiplier value. | 
							  
							
							Parameters Returns | integer | The green offset value [0-255]. | 
							  
							
							Parameters Returns | boolean | Whether the cxform is an identity color transformation matrix or not. | 
							  
							
							Parameters Returns |  | This function does not return any values. | 
							  
							
							Parameters Returns |  | This function does not return any values. | 
							  
							
							Parameters Returns | number | The red multiplier value. | 
							  
							
							Parameters Returns | integer | The red offset value [0-255]. | 
							  
							
							Parameters 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 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 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 Returns |  | This function does not return any values. | 
							  
							
							Parameters Returns 
 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
  scaleform.Actor.cxform (self) : scaleform.Cxform
Returns the color transformation matrix applied on the actor.
 scaleform.Actor.world_cxform (self) : scaleform.Cxform
  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
  scaleform.Cxform.clone (self) : scaleform.Cxform
Clones the color transform object.
 scaleform.Cxform.create (color) : scaleform.Cxform
  scaleform.Cxform.create (color) : scaleform.Cxform
Creates a new color transform object.
 scaleform.Cxform.create_alpha (a) : scaleform.Cxform
  scaleform.Cxform.create_alpha (a) : scaleform.Cxform
Adds an alpha value to the color transform.
 scaleform.Cxform.create_brightness (b) : scaleform.Cxform
  scaleform.Cxform.create_brightness (b) : scaleform.Cxform
Applies a brightness to the color transform.
 scaleform.Cxform.create_tint (t, r, g, b) : scaleform.Cxform
  scaleform.Cxform.create_tint (t, r, g, b) : scaleform.Cxform
Applies tint color.
 scaleform.Actor.concatenate_cxform (self, cxform)
  scaleform.Actor.concatenate_cxform (self, cxform) 
Concatenates the color transform to the actor.
 scaleform.Actor.set_cxform (self, cxform)
  scaleform.Actor.set_cxform (self, cxform) 
Sets the color transformation matrix on the actor.
 scaleform.Cxform.alpha_multiplier (self) : number
  scaleform.Cxform.alpha_multiplier (self) : number
Returns the alpha multiplier value set for color transformation.
 self : scaleform.Cxform
  self : scaleform.Cxform
The color transform currently in use. number
  number scaleform.Cxform
  scaleform.Cxform
A color transform class that modifies all pixels being rendered.
A numeric value. scaleform.Cxform.alpha_offset (self) : integer
  scaleform.Cxform.alpha_offset (self) : integer
Returns the offset value set to the alpha channel value.
 self : scaleform.Cxform
  self : scaleform.Cxform
The color transform currently in use. integerA strictly integral numeric value, with no decimal component.
  integerA strictly integral numeric value, with no decimal component. scaleform.Cxform.append (self, cxformParent)
  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
  self : scaleform.Cxform
The color transform currently in use. cxformParent : scaleform.Cxform
  cxformParent : scaleform.Cxform
The color transform to multiply to. scaleform.Cxform.blue_multiplier (self) : number
  scaleform.Cxform.blue_multiplier (self) : number
Returns the blue multiplier value set for color transformation.
 self : scaleform.Cxform
  self : scaleform.Cxform
The color transform currently in use. number
  number scaleform.Cxform.blue_offset (self) : integer
  scaleform.Cxform.blue_offset (self) : integer
Returns the offset value set to the blue channel value.
 self : scaleform.Cxform
  self : scaleform.Cxform
The color transform currently in use. integer
  integer self : scaleform.Cxform
  self : scaleform.Cxform
The color transform. scaleform.Cxform
  scaleform.Cxform
The cloned Cxform object. scaleform.Cxform.color (self) : scaleform.Color
  scaleform.Cxform.color (self) : scaleform.Color
Returns the color of the transform.
 self : scaleform.Cxform
  self : scaleform.Cxform
The color transform currently in use. scaleform.Color
  scaleform.Color
The color. scaleform.Color
  scaleform.Color
{ alpha : integer,  blue : integer,  green : integer,  red : integer,  } scaleform.Cxform.convert_to_table (self) : table
  scaleform.Cxform.convert_to_table (self) : table
Copies the color transformation matrix into an table.
 self : scaleform.Cxform
  self : scaleform.Cxform
The color transform currently in use. table
  table
A 2x4 array of arrays of numbersA Lua table consisting of paired keys and values. scaleform.Cxform.copy (dst, src)
  scaleform.Cxform.copy (dst, src) 
Copies a color transform to another one.
 dst : scaleform.Cxform
  dst : scaleform.Cxform
The destination color transform. src : scaleform.Cxform
  src : scaleform.Cxform
The source color transform color : scaleform.Color?
  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
  scaleform.Cxform
The newly created color transform. a : number
  a : number
The alpha multiplier added to the color transform. scaleform.Cxform
  scaleform.Cxform
The modified color transform. b : number
  b : number
Brightness value. scaleform.Cxform
  scaleform.Cxform
The modified color transform. t : number
  t : number
The tint value. r : number
  r : number
The red color value. g : number
  g : number
The green color value. b : number
  b : number
The blue color value. scaleform.Cxform
  scaleform.Cxform
The modified color transform. scaleform.Cxform.green_multiplier (self) : number
  scaleform.Cxform.green_multiplier (self) : number
Returns the green multiplier value set for color transformation.
 self : scaleform.Cxform
  self : scaleform.Cxform
The color transform currently in use. number
  number scaleform.Cxform.green_offset (self) : integer
  scaleform.Cxform.green_offset (self) : integer
Returns the offset value set to the green channel value.
 self : scaleform.Cxform
  self : scaleform.Cxform
The color transform currently in use. integer
  integer scaleform.Cxform.is_identity (self) : boolean
  scaleform.Cxform.is_identity (self) : boolean
Determines if the Cxform is identity color transformation matrix.
 self : scaleform.Cxform
  self : scaleform.Cxform
The color transform currently in use. booleantrue or false.
  booleantrue or false. scaleform.Cxform.normalize (self)
  scaleform.Cxform.normalize (self) 
Creates a normalized color transformation matrix.
 self : scaleform.Cxform
  self : scaleform.Cxform
The color transform currently in use. scaleform.Cxform.prepend (self, cxformParent)
  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
  self : scaleform.Cxform
The color transform currently in use. cxformParent : scaleform.Cxform
  cxformParent : scaleform.Cxform
The color matrix to multiply. scaleform.Cxform.red_multiplier (self) : number
  scaleform.Cxform.red_multiplier (self) : number
Returns the red multiplier value set for color transformation.
 self : scaleform.Cxform
  self : scaleform.Cxform
The color transform currently in use. number
  number scaleform.Cxform.red_offset (self) : integer
  scaleform.Cxform.red_offset (self) : integer
Returns the offset value set to the red channel value.
 self : scaleform.Cxform
  self : scaleform.Cxform
The color transform currently in use. integer
  integer scaleform.Cxform.requires_blend (self) : boolean
  scaleform.Cxform.requires_blend (self) : boolean
Disables blending when not required.
 self : scaleform.Cxform
  self : scaleform.Cxform
The color transform currently in use. boolean
  boolean scaleform.Cxform.set_alpha_multiplier (self, am)
  scaleform.Cxform.set_alpha_multiplier (self, am) 
Sets the alpha multiplier for the color.
 self : scaleform.Cxform
  self : scaleform.Cxform
The color transform currently in use. am : number
  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)
  scaleform.Cxform.set_alpha_offset (self, ao) 
Sets an offset value to the alpha channel value.
 self : scaleform.Cxform
  self : scaleform.Cxform
The color transform currently in use. ao : integer
  ao : integer
The alpha offset value [0-255]; scaleform.Cxform.set_blue_multiplier (self, bm)
  scaleform.Cxform.set_blue_multiplier (self, bm) 
Sets the blue multiplier for the color.
 self : scaleform.Cxform
  self : scaleform.Cxform
The color transform currently in use. bm : number
  bm : number
The percentage to apply the color, as a decimal value between 0 and 1. scaleform.Cxform.set_blue_offset (self, bo)
  scaleform.Cxform.set_blue_offset (self, bo) 
Sets an offset value to the blue channel value.
 self : scaleform.Cxform
  self : scaleform.Cxform
The color transform currently in use. bo : integer
  bo : integer
The blue offset value [0-255]. scaleform.Cxform.set_color (self, c)
  scaleform.Cxform.set_color (self, c) 
Initializes the red, green, blue, and alpha components of the current color.
 self : scaleform.Cxform
  self : scaleform.Cxform
The color transform currently in use. c : scaleform.Color
  c : scaleform.Color
A color whose components set those of the current color. scaleform.Cxform.set_green_multiplier (self, gm)
  scaleform.Cxform.set_green_multiplier (self, gm) 
Sets the green multiplier for the color.
 self : scaleform.Cxform
  self : scaleform.Cxform
The color transform currently in use. gm : number
  gm : number
The green multiplier value. scaleform.Cxform.set_green_offset (self, go)
  scaleform.Cxform.set_green_offset (self, go) 
Sets an offset value to the green channel value.
 self : scaleform.Cxform
  self : scaleform.Cxform
The color transform currently in use. go : integer
  go : integer
The green offset value [0-255]. scaleform.Cxform.set_identity (self)
  scaleform.Cxform.set_identity (self) 
Sets the color transform matrix to identity color transformation matrix.
 self : scaleform.Cxform
  self : scaleform.Cxform
The color transform currently in use. scaleform.Cxform.set_red_multiplier (self, rm)
  scaleform.Cxform.set_red_multiplier (self, rm) 
Sets the red multiplier for the color.
 self : scaleform.Cxform
  self : scaleform.Cxform
The color transform currently in use. rm : number
  rm : number
The percentage to apply the color, as a decimal value between 0 and 1. scaleform.Cxform.set_red_offset (self, ro)
  scaleform.Cxform.set_red_offset (self, ro) 
Sets an offset value to the red channel value.
 self : scaleform.Cxform
  self : scaleform.Cxform
The color transform currently in use. ro : integer
  ro : integer
The red offset value [0-255]. scaleform.Cxform.set_to_append (self, c0, c1)
  scaleform.Cxform.set_to_append (self, c0, c1) 
Initializes the current color matrix to the result of appended matrices.
 self : scaleform.Cxform
  self : scaleform.Cxform
The color transform currently in use. c0 : scaleform.Cxform
  c0 : scaleform.Cxform
The color matrix to append. c1 : scaleform.Cxform
  c1 : scaleform.Cxform
The parent color matrix. scaleform.Cxform.transform (self, newColor) : scaleform.Color
  scaleform.Cxform.transform (self, newColor) : scaleform.Color
Applies a color transform to the specified color. 
 self : scaleform.Cxform
  self : scaleform.Cxform
The color transform currently in use. newColor : scaleform.Color
  newColor : scaleform.Color
A color value that needs to be transformed. scaleform.Color
  scaleform.Color
The transformed color. self : scaleform.Actor
  self : scaleform.Actor
The actor whose color transformation is retrieved. scaleform.Cxform
  scaleform.Cxform
The color transformation matrix. self : scaleform.Actor
  self : scaleform.Actor
The actor whose color transform matrix is retrieved. scaleform.Cxform
  scaleform.Cxform
The concatenated color world matrix. self : scaleform.Actor
  self : scaleform.Actor
The actor to which color transformation is concatenated. cxform : scaleform.Cxform
  cxform : scaleform.Cxform
The color transform matrix to concatenate. self : scaleform.Actor
  self : scaleform.Actor
The actor to which a color transformation is applied. cxform : scaleform.Cxform
  cxform : scaleform.Cxform
The color transform matrix value. scaleform.Actor
  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.