Functions
Metamethods

Functions

Pen.Pen(options)

Create a new Pen All parameters should be supplied in a table

Parameters

options: a table contining the Paper the Pen will draw on, the weight of the Pen, the color of the Pen. Accpets any valid HTML color (color name or hex code), and an optional position of the Pen in multi pen plotters

Returns

A new Pen table

Example
local black_pen = Pen({ paper = paper, width = 1, color = "#000", position = 1 })
black_pen:log()

$> ✎ Pen [ weight = 1 : color = #000 ]

Metamethods

pen:__tostring()

Get a representation of the Pen as a string.

Returns

A string representation of the Pen.