Opus Motion ★ Star on GitHub

Image looks · knife-colour-relay

Knife colour relay

A cool-grey, wet-looking palette-knife painting is re-laid in colour stroke by stroke by a wave spreading from a point: each stroke sweeps from grey to colour along its own length. Strokes in exceptionMask (default: the red umbrella) stay in colour from the start, the one-colour exception. Set revealSpeed 0 for exception-only, exceptionMask [] for a pure wave.

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

Knife colour relay: three frames of the image effect, start, middle and end
Knife colour relay — start, middle and end of the 6.0-second motion.

What Knife colour relay is for

"The world wakes up", rebrand, recovery, season turning — a story beat; or "everything grey except this one thing".

  • grey to colour
  • colour wave
  • one colour exception
  • selective colour
  • oil painting
  • palette knife
  • wake up
  • recovery
  • rebrand
  • season
  • story beat
  • impasto

Details

Category
Image looks & photo effects
Length
6.0 s (180 frames at 30 fps)
Formats
16:9, 1:1, 9:16
Weight
medium
Transparent overlay
no
Seamless loop
no
Text props
—
Colour props
canvas
Image props
src
Mood
photo
Roles
backdrop

Use Knife colour relay in Remotion, React or HTML

Remotion project

terminal
# copy this motion into your Remotion project
node cli/mgl.mjs add knife-colour-relay --to ../my-app/src

# render an mp4 (run in the library folder)
node cli/mgl.mjs render knife-colour-relay --props '{"canvas":"#CBC9C6","src":""}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export knife-colour-relay --as mp4 --props '{"canvas":"#CBC9C6","src":""}'

React / Next.js

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

<MotionPlayer
  motion="knife-colour-relay"
  props={{canvas: '#CBC9C6', src: ''}}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

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

<opus-motion motion="knife-colour-relay"
  props='{"canvas":"#CBC9C6","src":""}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "knife-colour-relay",
      "props": {
        "canvas": "#CBC9C6",
        "src": ""
      }
    }
  ]
}

Knife colour relay props

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

PropDefaultWhat it does
src""optional image in public/ — grey copy with a colour wave (procedural landscape when empty)
revealOrigin[0.36,0.78]wave origin [x, y] as fractions of the frame
revealSpeed19wave speed in u per frame (0 = never reveal, exception only)
revealAt56frame the wave starts
revDur14frames each stroke takes to turn to colour
exceptionMask["umbrella"]scene groups kept in colour: umbrella, house, tree, river, sun, sky, hills, field
strokeScale1stroke size multiplier
lightAngle225raking-light direction in degrees
spec0.22ridge highlight strength
seed5stroke layout seed
palette{}override scene colours (see knife-paint-plate)
canvas"#CBC9C6"bare canvas colour between strokes

Notes & credits

Technique sources:

  • lemo-opuscar styles/impasto/demo/engine/impasto.js reveal sweep (MIT, LemoLab)
  • lemo-styles-a impasto: knife-colour-relay / one-colour-exception