class CanvasRenderingContext2D

Package :

(default package)

Description :

As Graphics uses functions, we need to add functions to the context native class to replace assignments.

Methods :

new()

Creates a new CanvasRenderingContext2D object.

beginFill(color)

Equivalent to setting fillStyle

Parameters :

lineStyle(color)

Equivalent to setting strokeStyle

Parameters :

shadow(color, blur, x, y)

Setting the shadow style

Parameters :

textStyle(color, align, baseline, font)

Parameters :