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 array1Array First array to compare
array2Array 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 filterAreaRectangle The filter area
spriteSprite the target sprite
outputMatrixMatrix @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 colornumber | 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 colornumber | Array.<number> Returns:
Type Description string The color as a string. -
combines rgb and alpha to out array
Name Type Default Description rgbFloat32Array | Array.<number> input rgb
alphanumber alpha param
outFloat32Array optional output
premultiplyboolean true optional do premultiply it
Returns:
Type Description Float32Array vec4 rgba -
premultiplies tint
Name Type Description tintnumber integet RGB
alphanumber 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 tintnumber input tint
alphanumber alpha param
outFloat32Array optional output
premultiplyboolean true optional do premultiply it
Returns:
Type Description Float32Array vec4 rgba
Type Definitions
-
Typedef for decomposeDataUri return object.
Properties:
Name Type Description MediamediaType type, eg.
imageSubsubType type, eg.
pngDataencoding encoding, eg.
base64Thedata actual data
-
Properties:
Name Type Description texturePIXI.Texture The PIXI.Texture of the frame
timenumber the duration of the frame in ms
-
Typedef for Size object.
Properties:
Name Type Description Widthwidth component
Heightheight component