API Docs for: 6.0.1
Show:

window.scrawl_Phrase Class

window.scrawl

scrawlPhrase extension adaptions to the scrawl-canvas library object

New library sections

  • scrawl.text

Item Index

Methods

Methods

makePhrase

(
  • items
)

A factory function to generate new Phrase entitys

Parameters:

  • items Object

    Key:value Object argument for setting attributes

Returns:

Phrase object

Example:

scrawl.makePhrase({
    startX: 50,
    startY: 20,
    fillStyle: 'red',
    font: '20pt Arial, sans-serif',
    textAlign: 'center',
    text: 'Hello, world!\nHow are you today?',
    });

newPhrase

() deprecated

Alias for makePhrase()