Opus Motion ★ Star on GitHub

Characters · colour-model-relight

Colour-model relight

One cel character re-lit through day, dawn, night, backlit and silhouette by multiplying each paint role separately (fills, shadows, lines, hand-set skin), beside the muddy result of a single filter over the whole frame.

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

Colour-model relight: three frames of the character animation, start, middle and end
Colour-model relight — start, middle and end of the 5.3-second motion.

What Colour-model relight is for

Reuse the same character or asset across times of day and moods without a frame filter; copy relight(palette, set) from r2-la1-kit into your own character motions as a timeOfDay prop.

  • relight
  • time of day
  • palette
  • cel
  • anime
  • night
  • dawn
  • backlit
  • silhouette
  • colour model
  • character
  • utility
  • compare

Details

Category
Animated characters
Length
5.3 s (160 frames at 30 fps)
Formats
16:9, 1:1, 9:16
Weight
light
Transparent overlay
no
Seamless loop
no
Text props
—
Colour props
jacket scarf hair skin background
Mood
comic, playful, night
Roles
subject

Use Colour-model relight in Remotion, React or HTML

Remotion project

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

# render an mp4 (run in the library folder)
node cli/mgl.mjs render colour-model-relight --props '{"jacket":"#2F6FE2","scarf":"#FF6B6B","hair":"#5B3A9E","skin":"#F0C7A8","background":"#0E0A18"}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export colour-model-relight --as mp4 --props '{"jacket":"#2F6FE2","scarf":"#FF6B6B","hair":"#5B3A9E","skin":"#F0C7A8","background":"#0E0A18"}'

React / Next.js

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

<MotionPlayer
  motion="colour-model-relight"
  props={{
    jacket: '#2F6FE2',
    scarf: '#FF6B6B',
    hair: '#5B3A9E',
    skin: '#F0C7A8',
    background: '#0E0A18',
  }}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

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

<opus-motion motion="colour-model-relight"
  props='{"jacket":"#2F6FE2","scarf":"#FF6B6B","hair":"#5B3A9E","skin":"#F0C7A8","background":"#0E0A18"}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "colour-model-relight",
      "props": {
        "jacket": "#2F6FE2",
        "scarf": "#FF6B6B",
        "hair": "#5B3A9E",
        "skin": "#F0C7A8",
        "background": "#0E0A18"
      }
    }
  ]
}

Colour-model relight props

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

PropDefaultWhat it does
sets["day","dawn","night","backlit","silhouette"]sequence of light sets: day | dawn | night | backlit | silhouette (30 frames each, blended)
jacket"#2F6FE2"jacket fill colour (shade and line colours are derived)
scarf"#FF6B6B"hero accent colour — stays readable in every set
hair"#5B3A9E"hair fill colour
skin"#F0C7A8"daylight skin colour (each set overrides it by hand)
comparetruetrue = left panel shows one filter over the whole frame, right panel the per-role relight
swatchestrueshow the set chips at the bottom
background"#0E0A18"page colour behind the panels
frameLabel"ONE FILTER OVER THE FRAME"caption of the left (whole-frame filter) panel in compare mode
relightLabel"RELIGHT PER PAINT ROLE"caption of the per-paint-role relight panel

Notes & credits

Technique sources:

  • lemo-opuscar styles/cel-anime-80s/demo/pal.js (MIT, LemoLab)