textui/web-demo/pre.html

16 lines
358 B
HTML
Raw Normal View History

2021-03-05 23:02:04 +00:00
<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>