Global

Members

cachednumber

tint of the line to draw

cachednumber

tint of the fill

thenumber

color of the line to draw

thenumber

alpha of the line to draw

Thenumber

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

thenumber

alpha of the fill

thenumber

color of the fill

thenumber

width of the line to draw

shape object to draw.

whetherboolean

or not the shape is filled with a colour

Methods

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