Skip to content
Nathan Piercy edited this page Aug 8, 2016 · 4 revisions

clear canvas

refresh canvas

fill colour

stroke colour

fill gradient

stroke gradient

fill pattern

stroke pattern

create linear gradient

create radial gradient

gradient add colour stop

create pattern from image

line width

line cap

line join

miter limit

line dash

line dash offset

colour to hex

set alpha

set composition

translate

rotate

scale

reset transform

clear rect

fill rect

stroke rect

begin path

close path

clip

is point in path

is point in stroke

move to

line to

quadratic bézier curve

cubic bézier curve

arc

fill

stroke

shadow blur

shadow colour

shadow offset x

shadow offset y

font

text align

text baseline

fill text

stroke text

width of text

create image from url

create image from rect

draw image

image width

image height

Clone this wiki locally