Opus Motion ★ Star on GitHub

Image looks · duotone

Duotone recolour

A full-colour image cross-fades into a 2–3 colour brand ramp (blue, pink-violet, ink etching with cross-hatch, madness green flash or a day-to-night grade).

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

Duotone recolour: three frames of the image effect, start, middle and end
Duotone recolour — start, middle and end of the 4.0-second motion.

What Duotone recolour is for

Brand-colour unification of mixed stills, mood switches (calm -> panic, day -> night), print-style looks.

  • image
  • duotone
  • grade
  • recolour
  • tint
  • day-to-night
  • flash
  • print grade
  • ink on paper
  • constructivist
  • archive
  • flicker
  • paper fibre

Details

Category
Image looks & photo effects
Length
4.0 s (120 frames at 30 fps)
Formats
16:9, 1:1, 9:16
Weight
medium
Transparent overlay
no
Seamless loop
no
Text props
word
Colour props
wordColor
Image props
src
Mood
mid, paper, photo, night
Roles
backdrop
Pairs with
Mask-rise title, Stamp slam + keyword pop, Film finishing stack

Use Duotone recolour in Remotion, React or HTML

Remotion project

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

# render an mp4 (run in the library folder)
node cli/mgl.mjs render duotone --props '{"word":"","wordColor":"#DA4F4D","src":""}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export duotone --as mp4 --props '{"word":"","wordColor":"#DA4F4D","src":""}'

React / Next.js

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

<MotionPlayer
  motion="duotone"
  props={{word: '', wordColor: '#DA4F4D', src: ''}}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

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

<opus-motion motion="duotone"
  props='{"word":"","wordColor":"#DA4F4D","src":""}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "duotone",
      "props": {
        "word": "",
        "wordColor": "#DA4F4D",
        "src": ""
      }
    }
  ]
}

Duotone recolour props

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

PropDefaultWhat it does
src""public/ image path; empty = procedural plate
seed1procedural plate seed
palette"dusk"procedural plate palette: dusk | night | dawn
preset"blue"blue | pink-violet | ink-etching | madness | night
colors[]custom ramp dark -> light (2–3 hex colours) overriding the preset
at36frame the recolour starts
fade0cross-fade length in frames (0 = preset: 4 / 4 / 10 / 1 / 42)
push1.5slow push-in in %/s
hatch0.25ink-etching: cross-hatch opacity in the darks (0.25 in the source)
word""madness: word that flickers on (+0.30 s for 2 f, off 3 f, then steady), e.g. 狂気
wordColor"#DA4F4D"madness: word colour
grain0.03film grain amount
sCurve0S-curve contrast strength for the ramp (0 = preset; 0.32 print grade, 0.18 documents)
flicker0archive-film brightness flicker amount (0.025 = +-2.5 %)
paperFibre0paper-fibre texture multiplied over the print 0..1 (0.5 = print grade)
redOverlay""spot-colour layer multiplied over the recolour (e.g. #D23A2A constructivist red); empty = none
redAmount0.4opacity of the redOverlay layer

Notes & credits

Technique sources:

  • video4 0:17 duotone-recolor
  • video5 ink-etching-tint
  • video21 0:15.9 madness-flash-tint
  • video16 0:44.6-0:46 grade-to-night