Global

Members

cachednumber

tint of the line to draw

cachednumber

tint of the fill

ifboolean

true the liens will be draw using LINES instead of TRIANGLE_STRIP

thenumber

color of the line to draw

shape object to draw.

thenumber

alpha of the fill

Thenumber

type of the shape, see the Const.Shapes file for all the existing types,

thenumber

width of the line to draw

thenumber

alpha of the line to draw

thenumber

color of the fill

whetherboolean

or not the shape is filled with a colour

Methods

areArraysEqual(array1, array2){boolean}

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

getColor(color){string}

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.

getSingleColor(color){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.

Type Definitions

DecomposedDataUriobject

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

FrameObjectobject

Properties:
Name Type Description
texture PIXI.Texture

The PIXI.Texture of the frame

time number

the duration of the frame in ms

Sizeobject

Typedef for Size object.

Properties:
Name Type Description
Width width

component

Height height

component