17 lines
356 B
TypeScript
17 lines
356 B
TypeScript
import Node from "./Compositor/Node";
|
||
import Canvas from "./Compositor/Canvas"
|
||
import ImageNode from "./Compositor/ImageNode";
|
||
import TextNode from "./Compositor/TextNode";
|
||
|
||
|
||
let t = new Canvas();
|
||
t.init();
|
||
|
||
let text = new TextNode("Merhaba arkadaşlar nasılsınız ?");
|
||
text.color = "black";
|
||
text.x = 0;
|
||
text.fontSize = 24;
|
||
text.y = 0;
|
||
|
||
|
||
t.addNode(text); |