Skip to content

Latest commit

 

History

History
23 lines (14 loc) · 645 Bytes

SamsaInstance.md

File metadata and controls

23 lines (14 loc) · 645 Bytes

Samsa docs

SamsaInstance object

Description

The SamsaInstance object is ...

Constructor

Instance properties

Instance methods

  • SamsaInstance.renderText()
    Returns an SVG string that is ready to display. It takes one argument, options. All properties of options are optional, with defaults indicated in square brackets below.
    • options.text is the text to be rendered ["hello, world!"]
    • options.fontSize is the size of the text in SVG units [12]
    • options.color is the 32-bit RGBA color to use [0x000000ff]
    • options.paletteId is the palette ID to use for COLR fonts [0]

Examples