API Docs for: 6.0.1
Show:

window.scrawl_Block Class

window.scrawl

scrawlBlock extension adaptions to the scrawl-canvas library object

Item Index

Methods

Methods

makeBlock

(
  • items
)

A factory function to generate new Block entitys

Parameters:

  • items Object

    Key:value Object argument for setting attributes

Returns:

Block object

Example:

scrawl.makeBlock({
    width: 100,
    height: 50,
    startX: 150,
    startY: 60,
    fillStyle: 'blue',
    strokeStyle: 'red',
    roll: 30,
    method: 'sinkInto',
    });

newBlock

() deprecated

Alias for makeBlock()