Opus Motion ★ Star on GitHub

Shapes · ink-brush-stroke

Ink brush stroke

Sumi brushstrokes paint themselves on rice paper: a wet loaded body with a darker contour side, bristle tracks that break into flying white at the dry tail, soft edge bleed; presets for a decisive swoosh, an underline, an ensō circle and a bamboo sprig, or pass your own paths.

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

Ink brush stroke: three frames of the shape animation, start, middle and end
Ink brush stroke — start, middle and end of the 5.0-second motion.

What Ink brush stroke is for

Hand-made accent strokes, underlines, logo swooshes, dividers; the foundation stroke for any brush or calligraphy look.

  • ink
  • brush
  • sumi
  • calligraphy
  • stroke
  • flying white
  • paint
  • draw-on
  • underline
  • enso
  • bamboo
  • japanese
  • chinese
  • xieyi
  • paper
  • overlay
  • accent

Details

Category
Shape & geometric animations
Length
5.0 s (150 frames at 30 fps)
Formats
16:9, 1:1, 9:16
Weight
light
Transparent overlay
yes
Seamless loop
no
Text props
caption
Colour props
color
Mood
paper, night
Roles
accent, subject

Use Ink brush stroke in Remotion, React or HTML

Remotion project

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

# render an mp4 (run in the library folder)
node cli/mgl.mjs render ink-brush-stroke --props '{"caption":"one breath, one stroke","color":"#131110"}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export ink-brush-stroke --as webm-alpha --props '{"caption":"one breath, one stroke","color":"#131110"}'

React / Next.js

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

<MotionPlayer
  motion="ink-brush-stroke"
  props={{caption: 'one breath, one stroke', color: '#131110'}}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

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

<opus-motion motion="ink-brush-stroke"
  props='{"caption":"one breath, one stroke","color":"#131110"}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "ink-brush-stroke",
      "props": {
        "caption": "one breath, one stroke",
        "color": "#131110"
      }
    }
  ]
}

Ink brush stroke props

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

PropDefaultWhat it does
strokes[]custom strokes: {path [[x,y,pressure]..] in 0..1, width (u), dry 0–0.7, tone 0–1, at, dur, profile brush|tip|even|lens|fan|rise, darkSide -1|0|1, color?} — empty uses the preset
preset"bamboo"built-in stroke sets: 'swoosh' | 'underline' | 'enso' | 'bamboo' | 'none'
caption"one breath, one stroke"small italic serif line with a vermilion square ("" = none)
color"#131110"ink colour
background"paper"'paper' (warm rice paper), any colour, or 'transparent' for an overlay
papertruedraw the procedural rice-paper texture
bleed1wet edge bleed strength (0 = crisp)
seed3bristle randomness seed

Notes & credits

Technique sources:

  • lemo-opuscar styles/ink-wash (MIT, LemoLab) — demo/ink.js brush engine, STYLE.md