A library for generating natural 8pen doodles.

Usage no npm install needed!

<script type="module">
  import pendoodle from 'https://cdn.skypack.dev/8pendoodle';


8pen Doodle

Sample doodle

This repository contains code relating to the 8pen Doodle blog post. It describes a way to simulate the drawing of a word on the 8pen and replicate it as an SVG drawing. For a live version, check out the 8pen Doodle.

The content is as follows:

  • doodle.coffee: the CoffeeScript file containing the simulation
  • doodle.js: the compiled simulation code
  • vendor/seedrandom.js: a library to seed the random generator for consistent results
  • index.html: an example page containing an 8pen Doodle