Members
-
tint of the fill
-
tint of the line to draw
-
true the liens will be draw using LINES instead of TRIANGLE_STRIP
-
color of the fill
-
color of the line to draw
-
width of the line to draw
-
type of the shape, see the Const.Shapes file for all the existing types,
-
shape object to draw.
-
alpha of the fill
-
alpha of the line to draw
-
or not the shape is filled with a colour
Methods
-
Utility function to convert hexadecimal colors to strings, and simply return the color if it's a string. This version can also convert array of colors
Name Type Description array1
Array First array to compare
array2
Array Second array to compare
Returns:
Type Description boolean Do the arrays contain the same values in the same order -
Calculates the mapped matrix
Name Type Description filterArea
Rectangle The filter area
sprite
Sprite the target sprite
outputMatrix
Matrix @alvin
-
Utility function to convert hexadecimal colors to strings, and simply return the color if it's a string. This version can also convert array of colors
Name Type Description color
number | Array.<number> Returns:
Type Description string The color as a string. -
Utility function to convert hexadecimal colors to strings, and simply return the color if it's a string.
Name Type Description color
number | Array.<number> Returns:
Type Description string The color as a string. -
combines rgb and alpha to out array
Name Type Default Description rgb
Float32Array | Array.<number> input rgb
alpha
number alpha param
out
Float32Array optional output
premultiply
boolean true optional do premultiply it
Returns:
Type Description Float32Array vec4 rgba -
premultiplies tint
Name Type Description tint
number integet RGB
alpha
number floating point alpha (0.0-1.0)
Returns:
Type Description number tint multiplied by alpha -
converts integer tint and float alpha to vec4 form, premultiplies by default
Name Type Default Description tint
number input tint
alpha
number alpha param
out
Float32Array optional output
premultiply
boolean true optional do premultiply it
Returns:
Type Description Float32Array vec4 rgba
Type Definitions
-
Typedef for decomposeDataUri return object.
Properties:
Name Type Description Media
mediaType type, eg.
image
Sub
subType type, eg.
png
Data
encoding encoding, eg.
base64
The
data actual data
-
Properties:
Name Type Description texture
PIXI.Texture The PIXI.Texture of the frame
time
number the duration of the frame in ms
-
Typedef for Size object.
Properties:
Name Type Description Width
width component
Height
height component