Opus Motion ★ Star on GitHub

Shapes · crayon-hatch-fill

Crayon hatch fill

A hand-drawn bar chart on toothy paper: indigo crayon outlines draw on, then each bar is coloured in with back-and-forth zig-zag wax strokes that overshoot the line row by row; the hero bar gets a cross-hatch, values are hand-lettered, lines boil at 12 fps.

A free, MIT-licensed shape animation from the Opus Motion Library — 616 motions for Remotion, React and plain HTML.

Crayon hatch fill: three frames of the shape animation, start, middle and end
Crayon hatch fill — start, middle and end of the 7.0-second motion.

What Crayon hatch fill is for

Colouring-in as an action: kids/education charts, playful reports, filling a bar, region or silhouette by hand.

  • crayon
  • hatch
  • colouring
  • zig-zag
  • wax
  • picture-book
  • kids
  • hand-drawn
  • bar-chart
  • chart
  • boil
  • paper
  • education
  • fill

Details

Category
Shape & geometric animations
Length
7.0 s (210 frames at 30 fps)
Formats
16:9, 1:1, 9:16
Weight
light
Transparent overlay
no
Seamless loop
no
Text props
title labels unit
Colour props
colors paperColor inkColor
Mood
paper, photo, hud
Roles
subject

Use Crayon hatch fill in Remotion, React or HTML

Remotion project

terminal
# copy this motion into your Remotion project
node cli/mgl.mjs add crayon-hatch-fill --to ../my-app/src

# render an mp4 (run in the library folder)
node cli/mgl.mjs render crayon-hatch-fill --props '{"title":"Books we read","labels":["Spring","Summer","Autumn","Winter"],"unit":"","colors":["#79ACD9","#F5C63C","#EC8A3C","#D4483C"],"paperColor":"#F4EFE3","inkColor":"#2D3263"}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export crayon-hatch-fill --as mp4 --props '{"title":"Books we read","labels":["Spring","Summer","Autumn","Winter"],"unit":"","colors":["#79ACD9","#F5C63C","#EC8A3C","#D4483C"],"paperColor":"#F4EFE3","inkColor":"#2D3263"}'

React / Next.js

tsx
import {MotionPlayer} from 'opus-motion-library/web';

<MotionPlayer
  motion="crayon-hatch-fill"
  props={{
    title: 'Books we read',
    labels: ['Spring', 'Summer', 'Autumn', 'Winter'],
    unit: '',
    colors: ['#79ACD9', '#F5C63C', '#EC8A3C', '#D4483C'],
    paperColor: '#F4EFE3',
    inkColor: '#2D3263',
  }}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

html
<script src="opus-motion.element.js" defer></script>

<opus-motion motion="crayon-hatch-fill"
  props='{"title":"Books we read","labels":["Spring","Summer","Autumn","Winter"],"unit":"","colors":["#79ACD9","#F5C63C","#EC8A3C","#D4483C"],"paperColor":"#F4EFE3","inkColor":"#2D3263"}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "crayon-hatch-fill",
      "props": {
        "title": "Books we read",
        "labels": [
          "Spring",
          "Summer",
          "Autumn",
          "Winter"
        ],
        "unit": "",
        "colors": [
          "#79ACD9",
          "#F5C63C",
          "#EC8A3C",
          "#D4483C"
        ],
        "paperColor": "#F4EFE3",
        "inkColor": "#2D3263"
      }
    }
  ]
}

Crayon hatch fill props

15 parameters — change any of them to make the motion yours.

PropDefaultWhat it does
title"Books we read"hand-lettered title
labels["Spring","Summer","Autumn","Winter"]one label per bar
values[12,19,15,27]bar values (up to 8)
colors["#79ACD9","#F5C63C","#EC8A3C","#D4483C"]crayon colour per bar (cycled)
unit""suffix after each value, e.g. "%"
highlight3index of the hero bar (red value + cross-hatch), -1 for none
angle0.62hatch angle in radians (0.62 = source)
gap10.5hatch row spacing in px@1080
pressure0.66crayon pressure 0..1 (light = speckled, heavy = near-solid)
overshoot7how far strokes run past the outline (px@1080)
crosstruelighter cross-hatch pass on the hero bar
boiltruelines re-jitter 12 times a second
paperColor"#F4EFE3"drawing paper colour
inkColor"#2D3263"outline / lettering crayon (never black)
stagger30frames between bars

Notes & credits

Technique sources:

  • lemo-opuscar styles/crayon-book (MIT, LemoLab) — demo/crayon.js fill(), line()