Skip to main content
← Prompts
Prompt · Video

Turn City Streets into Animated Memphis Illustrations

Turn a city street into a colorful animated illustration with bold outlines, geometric patterns and a slow continuous camera move. Regen shares a Memphis-style prompt and a Beijing street example; the tutorial develops it through a still frame, short preview and full video.

  • Story animation
  • Memphis
  • Canvas
  • Creative coding

Overview

What you get

  • The author’s Memphis-style prompt, with seven palette colors, indigo outlines and camera direction.
  • A roughly 20-second square animation of Beijing’s East 3rd Ring Road.
  • A staged exercise for developing your own Canvas animation and exporting it with FFmpeg.

Good fit

  • Making animated city postcards or short street-scene illustrations.
  • Keeping a consistent graphic style while changing the location, landmarks or camera movement.

Tutorial

Understand the city animation

Start here if you want to turn a familiar street into an animated city postcard. In this example, Memphis style means bright blocks of color, dark outlines, and decorative dots, stripes and zigzags.

Watch the three layers in the Beijing example above:

  • Background: a landmark and surrounding buildings establish the city skyline.
  • Middle ground: roads, trees and railings connect the scene.
  • Foreground: passing vehicles and a slow camera move keep the image changing.

Regen shared this page’s style prompt. The quoted post by Eian describes drawing frames with Canvas and assembling them with FFmpeg. The exercise below uses that approach to develop your own animation project with a coding agent.

Prepare a scene and the style prompt

Use a coding agent that can edit project files, run a browser and execute terminal commands. Open an empty project folder and have it check the browser rendering environment and FFmpeg. Set up any missing tools before starting.

  1. Copy this page’s prompt. The Chinese text is the author’s original; the English version is an Opuskill translation. It controls the palette, patterns, outlines, shadows and camera direction.
  2. Choose a location and its main objects. For this exercise, keep Beijing’s East 3rd Ring Road and gather reference images of the landmark or street.
  3. Send the prompt together with this scene brief, written for the tutorial:
Use HTML Canvas to create a Memphis-style animation of Beijing’s East 3rd Ring Road.
Use a 720×720 canvas, with the landmark and buildings behind trees and roads, and passing vehicles in front.
Apply the style prompt I pasted. Plan for 20 seconds at 30 fps, but first deliver only frame 0 as an image and the editable project.
Draw each frame with frame(i), where i is a zero-based frame index. The same i must always produce the same image.
Check the local browser rendering environment and FFmpeg first. Explain how to preview the project, then wait for me to review the composition.

Describe a city through visible building shapes, roads and vehicles. These are easier to revise than a vague request for a “city atmosphere.” Reference images help the agent establish those shapes.

Review a still frame, then a short preview

  1. Open the project as instructed by the agent and inspect frame 0. Can you recognize the landmark? Does the foreground hide it? Are the dots and stripes too dense?
  2. Once the composition works, send this preview request in the same conversation:
Keep the current composition and palette. Make only the first 3 seconds as an animation preview.
Render frame(0) through frame(89) at 30 fps. Do not render the full video yet.
Move vehicles along the road and let the background move more slowly. Move the camera slowly at a constant speed, without cuts.
Use a fixed random seed for patterns so dots, stripes and buildings do not jump between adjacent frames.
Deliver a playable short preview and explain how to keep editing this project.
  1. Play the preview continuously. Check that vehicles follow the road, buildings stay stable and the camera does not expose empty edges. Fix paths or scene boundaries before adding more decoration.

frame(i) ties each image to its frame index. You can redraw an individual frame, and the preview and full video can use the same motion rules.

Finish the continuous shot and export it

The exercise uses 20 seconds at 30 fps, or 600 frames. The reference video above is about 20 seconds at 60 fps. Start with fewer frames to reduce preview and revision work.

  1. Once the preview works, ask the agent to extend the same motion to 20 seconds. Keep the camera continuous, let vehicles enter and leave the scene, and avoid a sudden reset at the end.
  2. Ask it to export 720×720 images into the project’s frames/ folder, named frame-0000.png through frame-0599.png.
  3. Run this command in a terminal at the project root, or ask the agent to run it there:
# Assemble the PNG sequence into a 30 fps MP4
ffmpeg -framerate 30 -i frames/frame-%04d.png -c:v libx264 -pix_fmt yuv420p -movflags +faststart memphis-city.mp4
  1. Open memphis-city.mp4 and watch it from beginning to end. Check for camera jumps, vehicles crossing buildings and an empty final frame. Save the finished video and editable project.

Finish the visuals first. If you want music, choose it after the visual rhythm is settled. Keep a version without music for later editing.

Change one thing and compare the result

Save the current project and video as version A. Change only the camera speed by sending this request in the same conversation:

Make version B from the current project. Change only the camera’s horizontal movement speed to half its current value.
Keep the buildings, vehicle motion, palette, patterns, duration and frame rate.
Export a 3-second preview of the same time interval first. Check that the scene still covers the frame edges.

Compare the same interval in both versions. Which makes the landmark easier to see? Which gives a better sense of movement through the street? Choose before exporting the full version.

For a later color revision, keep the existing camera movement unchanged and replace just one color. Changing one type of problem at a time makes the effect easier to judge.

Adapt it to your own city

Continue with the finished project. Replace the brackets in this brief and send it to the same agent:

Location: [city and specific neighborhood]
Focal point: [one main landmark or building shape]
Roads and activity: [specific vehicle, cycling or walking movement]
References: [street or landmark images I provide]
Style to retain: [Memphis palette, indigo outlines, hard shadows, geometric patterns]
Format: [aspect ratio, dimensions, duration, frame rate]
Camera: [movement direction and the area to emphasize]
Text: [exact location name, or no text]
Make a still frame of the new scene, then a short preview. Export the full video and editable project after approval.

After replacing a landmark, adjust the relative building sizes and vehicle paths first. For a portrait version, recompose the scene and camera range, then check that both the road and landmark remain visible.