Static methods
statichasRGBAMultipliers(transform:ColorTransform):Bool
Returns whether red, green, blue, or alpha multipliers are set to anything other than 1.
statichasRGBAOffsets(transform:ColorTransform):Bool
Returns whether red, green, blue, or alpha offsets are set to anything other than 0.
statichasRGBMultipliers(transform:ColorTransform):Bool
Returns whether red, green, or blue multipliers are set to anything other than 1.
statichasRGBOffsets(transform:ColorTransform):Bool
Returns whether red, green, or blue offsets are set to anything other than 0.
staticinlinereset(transform:ColorTransform):ColorTransform
Resets the transform to default values, multipliers become 1.0
and offsets become 0.0
6.1.0
.staticinlinescaleMultipliers(transform:ColorTransform, rMult:Float, gMult:Float, bMult:Float, aMult:Float = 1.0):ColorTransform
staticinlinescaleMultipliers(transform:ColorTransform, color:FlxColor):ColorTransform
Scales each color's multiplier by the specifified amount
Parameters:
rMult | The amount to scale the red multiplier |
---|---|
gMult | The amount to scale the green multiplier |
bMult | The amount to scale the blue multiplier |
aMult | The amount to scale the alpha transparency multiplier |
Returns:
ColorTransform
6.1.0
.staticinlineset(transform:ColorTransform, rMult:Float, gMult:Float, bMult:Float, aMult:Float, rOffset:Float, gOffset:Float, bOffset:Float, aOffset:Float = 0.0):ColorTransform
staticinlineset(transform:ColorTransform, colorMult:FlxColor = FlxColor.WHITE, colorOffset:FlxColor = 0x0):ColorTransform
staticinlineset(transform:ColorTransform, rMult:Float, gMult:Float, bMult:Float, rOffset:Float, gOffset:Float, bOffset:Float):ColorTransform
Quick way to set all of a transform's values
Parameters:
rMult | The value for the red multiplier, ranges from 0 to 1 |
---|---|
gMult | The value for the green multiplier, ranges from 0 to 1 |
bMult | The value for the blue multiplier, ranges from 0 to 1 |
aMult | The value for the alpha transparency multiplier, ranges from 0 to 1 |
rOffset | The offset value for the red color channel, ranges from -255 to 255 |
gOffset | The offset value for the green color channel, ranges from -255 to 255 |
bOffset | The offset for the blue color channel value, ranges from -255 to 255 |
aOffset | The offset for alpha transparency channel value, ranges from -255 to 255 |
6.1.0
.staticinlinesetMultipliers(transform:ColorTransform, red:Float, green:Float, blue:Float, alpha:Float = 1.0):ColorTransform
staticinlinesetMultipliers(transform:ColorTransform, color:FlxColor):ColorTransform
Quick way to set all of a transform's multipliers
Parameters:
rMult | The value for the red multiplier, ranges from 0 to 1 |
---|---|
gMult | The value for the green multiplier, ranges from 0 to 1 |
bMult | The value for the blue multiplier, ranges from 0 to 1 |
aMult | The value for the alpha transparency multiplier, ranges from 0 to 1 |
staticinlinesetOffsets(transform:ColorTransform, red:Float, green:Float, blue:Float, alpha:Float = 0.0):ColorTransform
staticinlinesetOffsets(transform:ColorTransform, color:FlxColor):ColorTransform
Quick way to set all of a transform's offsets
Parameters:
red | The value for the red offset, ranges from 0 to 255 |
---|---|
green | The value for the green offset, ranges from 0 to 255 |
blue | The value for the blue offset, ranges from 0 to 255 |
alpha | The value for the alpha transparency offset, ranges from 0 to 255 |