Class: GraphicsData

Tiny. GraphicsData

A GraphicsData object.

new Tiny.GraphicsData(lineWidth, lineColor, lineAlpha, fillColor, fillAlpha, fill, nativeLines, shape)

Name Type Description
lineWidth number

the width of the line to draw

lineColor number

the color of the line to draw

lineAlpha number

the alpha of the line to draw

fillColor number

the color of the fill

fillAlpha number

the alpha of the fill

fill boolean

whether or not the shape is filled with a colour

nativeLines boolean

the method for drawing lines

shape Tiny.Circle | Tiny.Rectangle | Tiny.Ellipse | Tiny.Polygon

The shape object to draw.

Methods

Adds a hole to the shape.

Name Type Description
shape Tiny.Rectangle | Tiny.Circle

The shape of the hole.

Creates a new GraphicsData object with the same values as this one.

Returns:
Type Description
Tiny.GraphicsData Cloned GraphicsData object

Destroys the Graphics data.

Documentation generated by JSDoc 3.4.3 on Thu May 31 2018 14:40:22 GMT+0800 (CST)