API Docs for: 6.0.1
Show:

window.scrawl_Shape Class

window.scrawl

scrawlShape extension adaptions to the scrawl-canvas library object

Item Index

Methods

Methods

makeShape

(
  • items
)

A factory function to generate new Shape entitys

Parameters:

  • items Object

    Key:value Object argument for setting attributes

Returns:

Shape object

Example:

scrawl.makeShape({
    startX: 50,
    startY: 20,
    fillStyle: 'red',
    data: 'M0,0 50,0 60,20, 10,20 0,0z',
    });

newShape

() deprecated

Alias for makeShape()