text/label
A Label provides an interface to a persistent, styled text element.
Under the hood it maintains a position:
let label = new Label(ctx, {
fontSize: 50
, textAlign: "center"
, fontName: '"lexend deca"'
})
// label.fillStyle = 'orange'
label.position = new Point(300, 200)
this.label = label;
this.label.text = "updated text"
this.label.writeText(ctx)
Meta Data
| filepath_exists | True |
| path | text/label |
| filepath | text/label.js |
| clean_files | () |
A Label class accepts generic text properties.