ShapePainterRuntimeObject

ShapePainterRuntimeObject

The ShapePainterRuntimeObject allows to draw graphics shapes on screen.

Constructor

new ShapePainterRuntimeObject(runtimeScene, shapePainterObjectData)

Parameters:
Name Type Description
runtimeScene

The scene the object belongs to.

shapePainterObjectData

The initial properties of the object

Source:

Methods

clear()

Clear the graphics.

Source:

getFillOpacity()

Returns:
Type Description

an opacity value from 0 to 255.

Source:

getOutlineOpacity()

Returns:
Type Description

an opacity value from 0 to 255.

Source:

setFillColor(rgbColor)

Parameters:
Name Type Description
rgbColor

semicolon separated decimal values

Source:

setFillOpacity(opacity)

Parameters:
Name Type Description
opacity

from 0 to 255

Source:

setOutlineColor(rgbColor)

Parameters:
Name Type Description
rgbColor

semicolon separated decimal values

Source:

setOutlineOpacity(opacity)

Parameters:
Name Type Description
opacity

from 0 to 255

Source: