đŸ’Ÿ Archived View for tilde.pink â€ș ~ssb22 â€ș script2canvas.gmi captured on 2024-02-05 at 10:31:28. Gemini links have been rewritten to link to archived content

View Raw

More Information

âŹ…ïž Previous capture (2023-01-29)

-=-=-=-=-=-=-

Typescript player for HTML5

I wrote this to make an in-browser demonstration of Primer Pooler. It uses code from DOStoy to display a typescript in an HTML5 canvas.

Advantages:

Disadvantages:

Download: script2canvas.py (License: MIT)

script2canvas.py

Usage:

1. On a GNU/Linux terminal, do script -t log2 2>log1 and record as appropriate

2. Do python script2canvas.py >demo.js

3. Optionally edit the resulting demo.js file if you want to ‘airbrush’ your mistakes

4. In your HTML, put:

<span id="DOStoyPlace"></span><script src="demo.js"></script>

5. Test

Legal

All material © Silas S. Brown unless otherwise stated. Javascript is a trademark of Oracle Corporation in the US. Linux is the registered trademark of Linus Torvalds in the U.S. and other countries. Any other trademarks I mentioned without realising are trademarks of their respective holders.