Opus Motion ★ Star on GitHub

FX · crayon-wax-shader

Crayon wax shader

Wax-crayon-on-toothy-paper look as a layer: a picture-book garden (sun, cloud, flowers, grass) is outlined, coloured lightly so the wax only catches the paper tooth, then coloured over hard until near-solid; embossed paper, fibre grooves, 12 fps boil. With src, any picture is coloured in by big zig-zag strokes through the same filter.

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

Crayon wax shader: three frames of the visual effect, start, middle and end
Crayon wax shader — start, middle and end of the 7.0-second motion.

What Crayon wax shader is for

A hand-made crayon style layer for kids content, picture books, greeting cards; turn a photo into a crayon drawing.

  • crayon
  • wax
  • paper
  • tooth
  • texture
  • style
  • filter
  • picture-book
  • kids
  • hand-made
  • emboss
  • boil
  • flowers
  • garden
  • photo-to-drawing

Details

Category
Visual effects & particles
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
caption
Colour props
paperColor inkColor colors
Image props
src
Mood
paper, photo, nature
Roles
subject

Use Crayon wax shader in Remotion, React or HTML

Remotion project

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

# render an mp4 (run in the library folder)
node cli/mgl.mjs render crayon-wax-shader --props '{"caption":"colour outside the lines","paperColor":"#F4EFE3","inkColor":"#2D3263","colors":["#F5C63C","#EE8EA4","#62A24C","#EC8A3C","#79ACD9"],"src":""}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export crayon-wax-shader --as mp4 --props '{"caption":"colour outside the lines","paperColor":"#F4EFE3","inkColor":"#2D3263","colors":["#F5C63C","#EE8EA4","#62A24C","#EC8A3C","#79ACD9"],"src":""}'

React / Next.js

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

<MotionPlayer
  motion="crayon-wax-shader"
  props={{
    caption: 'colour outside the lines',
    paperColor: '#F4EFE3',
    inkColor: '#2D3263',
    colors: ['#F5C63C', '#EE8EA4', '#62A24C', '#EC8A3C', '#79ACD9'],
    src: '',
  }}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

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

<opus-motion motion="crayon-wax-shader"
  props='{"caption":"colour outside the lines","paperColor":"#F4EFE3","inkColor":"#2D3263","colors":["#F5C63C","#EE8EA4","#62A24C","#EC8A3C","#79ACD9"],"src":""}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "crayon-wax-shader",
      "props": {
        "caption": "colour outside the lines",
        "paperColor": "#F4EFE3",
        "inkColor": "#2D3263",
        "colors": [
          "#F5C63C",
          "#EE8EA4",
          "#62A24C",
          "#EC8A3C",
          "#79ACD9"
        ],
        "src": ""
      }
    }
  ]
}

Crayon wax shader props

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

PropDefaultWhat it does
src""optional picture (public/ path or URL) rendered as wax crayon; empty = the procedural garden
caption"colour outside the lines"printed words, written letter by letter at the bottom
pressure0.42first, light colouring pressure 0..1 (speckled)
heavyPressure0.95second, pressed-hard pressure 0..1 (near-solid)
toothScale1paper tooth size multiplier
emboss0.6paper emboss strength 0..1
paperColor"#F4EFE3"drawing paper colour
inkColor"#2D3263"outline crayon colour
boiltruelines re-jitter 12 times a second
colors["#F5C63C","#EE8EA4","#62A24C","#EC8A3C","#79ACD9"][sun, petals, leaves, flower centre, cloud] crayon colours

Notes & credits

Technique sources:

  • lemo-opuscar styles/crayon-book (MIT, LemoLab) — demo/gl.js tooth / wax adhesion / emboss, demo/crayon.js