2023-06-11 16:01:50 +03:00
|
|
|
|
import Node from "./Compositor/Node";
|
|
|
|
|
import Canvas from "./Compositor/Canvas"
|
2023-06-11 17:44:05 +03:00
|
|
|
|
import ImageNode from "./Compositor/ImageNode";
|
|
|
|
|
import TextNode from "./Compositor/TextNode";
|
2023-06-11 16:01:50 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let t = new Canvas();
|
|
|
|
|
t.init();
|
|
|
|
|
|
2023-06-11 17:44:05 +03:00
|
|
|
|
let text = new TextNode("Merhaba arkadaşlar nasılsınız ?");
|
|
|
|
|
text.color = "black";
|
|
|
|
|
text.x = 0;
|
|
|
|
|
text.fontSize = 24;
|
|
|
|
|
text.y = 0;
|
|
|
|
|
|
2023-06-11 16:01:50 +03:00
|
|
|
|
|
2023-06-11 17:44:05 +03:00
|
|
|
|
t.addNode(text);
|