Opus Motion ★ Star on GitHub

Image looks · crayon-pressure-pass

Crayon pressure pass

A child's crayon drawing draws itself: waxy strokes skip over a procedural paper tooth (light pressure leaves gaps, heavy fills in), zig-zag hatching overshoots the lines, the paper grain is embossed from the top-left and the indigo wobbly outlines boil on twos.

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

Crayon pressure pass: three frames of the image effect, start, middle and end
Crayon pressure pass — start, middle and end of the 7.0-second motion.

What Crayon pressure pass is for

Kids / edu / family brands, "hand-drawn by a child" moments, playful onboarding and recap drawings; the wax filter idea works on any stroke art.

  • crayon
  • wax
  • kids
  • child drawing
  • hand-drawn
  • hatching
  • paper tooth
  • texture
  • emboss
  • boil
  • on twos
  • microgame
  • playful
  • family
  • edu
  • onboarding
  • feTurbulence
  • stroke pressure
  • doodle
  • scribble

Details

Category
Image looks & photo effects
Length
7.0 s (210 frames at 30 fps)
Formats
16:9, 1:1, 9:16
Weight
medium
Transparent overlay
no
Seamless loop
no
Text props
text
Colour props
paper outline crayons
Mood
paper, nature, photo
Roles
backdrop

Use Crayon pressure pass in Remotion, React or HTML

Remotion project

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

# render an mp4 (run in the library folder)
node cli/mgl.mjs render crayon-pressure-pass --props '{"text":"yay!","paper":"#F4EFE3","outline":"#3B3D9A","crayons":["#F6C21A","#F08A24","#E0453A","#4FA24A","#2F7A3D","#3F7FD6","#7DB8EA","#8A5A34","#D6347F"]}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export crayon-pressure-pass --as mp4 --props '{"text":"yay!","paper":"#F4EFE3","outline":"#3B3D9A","crayons":["#F6C21A","#F08A24","#E0453A","#4FA24A","#2F7A3D","#3F7FD6","#7DB8EA","#8A5A34","#D6347F"]}'

React / Next.js

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

<MotionPlayer
  motion="crayon-pressure-pass"
  props={{
    text: 'yay!',
    paper: '#F4EFE3',
    outline: '#3B3D9A',
    crayons: [
      '#F6C21A',
      '#F08A24',
      '#E0453A',
      '#4FA24A',
      '#2F7A3D',
      '#3F7FD6',
      '#7DB8EA',
      '#8A5A34',
      '#D6347F',
    ],
  }}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

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

<opus-motion motion="crayon-pressure-pass"
  props='{"text":"yay!","paper":"#F4EFE3","outline":"#3B3D9A","crayons":["#F6C21A","#F08A24","#E0453A","#4FA24A","#2F7A3D","#3F7FD6","#7DB8EA","#8A5A34","#D6347F"]}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "crayon-pressure-pass",
      "props": {
        "text": "yay!",
        "paper": "#F4EFE3",
        "outline": "#3B3D9A",
        "crayons": [
          "#F6C21A",
          "#F08A24",
          "#E0453A",
          "#4FA24A",
          "#2F7A3D",
          "#3F7FD6",
          "#7DB8EA",
          "#8A5A34",
          "#D6347F"
        ]
      }
    }
  ]
}

Crayon pressure pass props

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

PropDefaultWhat it does
text"yay!"handwritten word written in magenta crayon
paper"#F4EFE3"paper colour
outline"#3B3D9A"outline crayon colour (indigo)
crayons["#F6C21A","#F08A24","#E0453A","#4FA24A","#2F7A3D","#3F7FD6","#7DB8EA","#8A5A34","#D634…nine hex colours: yellow, orange, red, green, dark green, blue, light blue, brown, magenta
pressure1pressure multiplier (below 1 = more skipped grain)
boil8line-boil steps per second (8 = on twos at 30 fps)
tooth1paper tooth scale (higher = finer grain)
emboss0.35strength of the embossed paper grain 0-1
seed3hatching / wobble seed

Notes & credits

Technique sources:

  • lemo-opuscar styles/microgame demo/glpass.js crayon (MIT, LemoLab) — deposit = tooth > 1 - 1.22*pressure, SVG feTurbulence approximation