Opus Motion ★ Star on GitHub

Maps · coverage-route

Coverage route (floor plan)

Top-down mid-century floor plan: a robot route draws itself region by region — a wall-follow loop, then back-and-forth lanes that flow around furniture without crossing, curls at every U-turn, stars and dots popping between lanes, a dotted return to the dock — while the camera pulls back and counter-rotates to reveal a patterned whole.

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

Coverage route (floor plan): three frames of the animated map, start, middle and end
Coverage route (floor plan) — start, middle and end of the 8.0-second motion.

What Coverage route (floor plan) is for

Robot vacuums / mowers, delivery rounds, sprinkler or cleaning coverage, "how the algorithm covers the space" payoffs.

  • route
  • coverage
  • floor plan
  • robot vacuum
  • boustrophedon
  • path
  • map
  • midcentury
  • toon
  • pull back
  • camera
  • pattern
  • process

Details

Category
Animated maps & geo graphics
Length
8.0 s (240 frames at 30 fps)
Formats
16:9, 1:1, 9:16
Weight
light
Transparent overlay
yes
Seamless loop
no
Text props
items caption
Colour props
routeColor routeEdge robotColor floor wall ink background
Mood
comic, playful, night
Roles
subject

Use Coverage route (floor plan) in Remotion, React or HTML

Remotion project

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

# render an mp4 (run in the library folder)
node cli/mgl.mjs render coverage-route --props '{"items":[{"shape":"sofa","x":0.17,"y":0.28,"rx":0.1,"ry":0.07,"color":"#E4613F"},{"shape":"round","x":0.22,"y":0.7,"rx":0.055,"ry":0.09,"color":"#C9955D"},{"shape":"round","x":0.54,"y":0.48,"rx":0.07,"ry":0.13,"color":"#7F9CC0"},{"shape":"plant","x":0.86,"y":0.26,"rx":0.035,"ry":0.06,"color":"#A7AE5B"},{"shape":"rect","x":0.87,"y":0.72,"rx":0.05,"ry":0.08,"color":"#E8B43A"}],"caption":"One pass. Every corner.","routeColor":"#3FA7A0","routeEdge":"#1B5753","robotColor":"#3FA7A0","floor":"#F4EAD5","wall":"#2B2420","ink":"#2B2420","background":"#E6D8BC"}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export coverage-route --as webm-alpha --props '{"items":[{"shape":"sofa","x":0.17,"y":0.28,"rx":0.1,"ry":0.07,"color":"#E4613F"},{"shape":"round","x":0.22,"y":0.7,"rx":0.055,"ry":0.09,"color":"#C9955D"},{"shape":"round","x":0.54,"y":0.48,"rx":0.07,"ry":0.13,"color":"#7F9CC0"},{"shape":"plant","x":0.86,"y":0.26,"rx":0.035,"ry":0.06,"color":"#A7AE5B"},{"shape":"rect","x":0.87,"y":0.72,"rx":0.05,"ry":0.08,"color":"#E8B43A"}],"caption":"One pass. Every corner.","routeColor":"#3FA7A0","routeEdge":"#1B5753","robotColor":"#3FA7A0","floor":"#F4EAD5","wall":"#2B2420","ink":"#2B2420","background":"#E6D8BC"}'

React / Next.js

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

<MotionPlayer
  motion="coverage-route"
  props={{
    items: [
      {
        shape: 'sofa',
        x: 0.17,
        y: 0.28,
        rx: 0.1,
        ry: 0.07,
        color: '#E4613F',
      },
      {
        shape: 'round',
        x: 0.22,
        y: 0.7,
        rx: 0.055,
        ry: 0.09,
        color: '#C9955D',
      },
      {
        shape: 'round',
        x: 0.54,
        y: 0.48,
        rx: 0.07,
        ry: 0.13,
        color: '#7F9CC0',
      },
      {
        shape: 'plant',
        x: 0.86,
        y: 0.26,
        rx: 0.035,
        ry: 0.06,
        color: '#A7AE5B',
      },
      {
        shape: 'rect',
        x: 0.87,
        y: 0.72,
        rx: 0.05,
        ry: 0.08,
        color: '#E8B43A',
      },
    ],
    caption: 'One pass. Every corner.',
    routeColor: '#3FA7A0',
    routeEdge: '#1B5753',
    robotColor: '#3FA7A0',
    floor: '#F4EAD5',
    wall: '#2B2420',
    ink: '#2B2420',
    background: '#E6D8BC',
  }}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

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

<opus-motion motion="coverage-route"
  props='{"items":[{"shape":"sofa","x":0.17,"y":0.28,"rx":0.1,"ry":0.07,"color":"#E4613F"},{"shape":"round","x":0.22,"y":0.7,"rx":0.055,"ry":0.09,"color":"#C9955D"},{"shape":"round","x":0.54,"y":0.48,"rx":0.07,"ry":0.13,"color":"#7F9CC0"},{"shape":"plant","x":0.86,"y":0.26,"rx":0.035,"ry":0.06,"color":"#A7AE5B"},{"shape":"rect","x":0.87,"y":0.72,"rx":0.05,"ry":0.08,"color":"#E8B43A"}],"caption":"One pass. Every corner.","routeColor":"#3FA7A0","routeEdge":"#1B5753","robotColor":"#3FA7A0","floor":"#F4EAD5","wall":"#2B2420","ink":"#2B2420","background":"#E6D8BC"}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "coverage-route",
      "props": {
        "items": [
          {
            "shape": "sofa",
            "x": 0.17,
            "y": 0.28,
            "rx": 0.1,
            "ry": 0.07,
            "color": "#E4613F"
          },
          {
            "shape": "round",
            "x": 0.22,
            "y": 0.7,
            "rx": 0.055,
            "ry": 0.09,
            "color": "#C9955D"
          },
          {
            "shape": "round",
            "x": 0.54,
            "y": 0.48,
            "rx": 0.07,
            "ry": 0.13,
            "color": "#7F9CC0"
          },
          {
            "shape": "plant",
            "x": 0.86,
            "y": 0.26,
            "rx": 0.035,
            "ry": 0.06,
            "color": "#A7AE5B"
          },
          {
            "shape": "rect",
            "x": 0.87,
            "y": 0.72,
            "rx": 0.05,
            "ry": 0.08,
            "color": "#E8B43A"
          }
        ],
        "caption": "One pass. Every corner.",
        "routeColor": "#3FA7A0",
        "routeEdge": "#1B5753",
        "robotColor": "#3FA7A0",
        "floor": "#F4EAD5",
        "wall": "#2B2420",
        "ink": "#2B2420",
        "background": "#E6D8BC"
      }
    }
  ]
}

Coverage route (floor plan) props

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

PropDefaultWhat it does
zones[{"x0":0,"x1":0.38,"color":"#F3D37F","label":"Living room"},{"x0":0.38,"x1":0.7,"color"…regions drawn one per beat [{x0, x1 (0..1 of room width), color, label}]
items[{"shape":"sofa","x":0.17,"y":0.28,"rx":0.1,"ry":0.07,"color":"#E4613F"},{"shape":"roun…furniture obstacles [{shape: round|sofa|plant|rect, x, y (0..1), rx, ry (fraction of room), color}]
dock[0.04,0.9]dock position [x, y] 0..1 of the room
laneGap82lane spacing in u
curl11curl radius at U-turns in u (0 = none)
wallLooptruestart with one wall-follow loop
startFrame6delay before drawing
loopFrames30frames for the wall loop
zoneFrames46frames per zone
returnFrames18frames for the dotted return home
pullback3.4starting camera zoom (pulls back to 1)
roll-6starting counter-rotation in degrees
routeColor"#3FA7A0"route (product) colour
routeEdge"#1B5753"darker off-register edge under the route
robotColor"#3FA7A0"robot body colour
decortruestars and dots revealed between lanes
floor"#F4EAD5"floor colour
wall"#2B2420"wall outline colour
ink"#2B2420"ink colour
caption"One pass. Every corner."caption card after the return ("" to hide)
showLabelstruezone labels
background"#E6D8BC"colour outside the room, or "transparent"

Notes & credits

Technique sources:

  • lemo-opuscar styles/midcentury-toon (MIT code, CC BY 4.0 docs, LemoLab) — demo/film.js laneY/buildPath/planProgress