Constructor
new LabelCanvas(text, options) → {SG2D.LabelCanvas}
Parameters:
Name | Type | Description | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
text |
string | |||||||||
options |
object |
Properties
|
- Source:
Returns:
- Type
- SG2D.LabelCanvas
Example
let canvasTitle = new SG2D.LabelCanvas("SG2D DEMO", {
font: "metal_yellow_big",
parent: document.querySelector("#title")
});
Methods
setText(text)
Установить текст надписи
Parameters:
Name | Type | Description |
---|---|---|
text |
string |
- Source: