canvas-compositor/index.ts

17 lines
356 B
TypeScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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);