webstead: add some instructions

This commit is contained in:
Ben Harris 2025-10-15 22:59:54 +01:00
parent a9bceeb6e7
commit d84ca8b4e7

View File

@ -78,7 +78,6 @@
Bedstead({
arguments: args,
print: function(charstring) {
document.getElementById("charstring").textContent = charstring;
document.getElementById("rendered")
.setAttribute("d", charstring
.replaceAll(/<!--(?:[^-]|-[^-])*-->/g, "")
@ -238,7 +237,15 @@
</div>
</div>
<p><input id="c" type="text" size="39"/></p>
<p><code id="charstring"></code></p>
<h2>Bedstead Editor</h2>
<p>This page allows you to design glyphs for
<a href=".">Bedstead</a>.
Click pixels in the grid on the left to turn them on and off.
The drawing on the right shows the rendered glyph, which will be
identical to the input until you start drawing diagonal lines.
The box below the grid shows the pixels encoded for adding to
<code>bedstead.c</code>.
You can also edit that box directly, or paste designs into it.</p>
<div class="smallprint">
<p>This editor contains code from Emscripten and musl libc under
the following licence:</p>