textui/web-demo/pre.html

16 lines
No EOL
358 B
HTML

<html>
<head>
<meta charset="utf-8">
<script type="module">
import { createTextUI } from "./textui.js";
const ui = await createTextUI();
ui.drawing.color(2, 0).text("hello", { x: 10, y: 3 });
ui.drawing.color(0, 1).text("world", { x: 10, y: 5 });
await ui.loop();
</script>
</head>
<body></body>
</html>