Interactive Mystic Shield 2  •  Hold Mouse for Perspective  •  09/26/2026
TNT — Creative Coding & Cross Training

🔮 Interactive Mystic Shield 2

Move the mouse across the canvas and the static shield wakes up: the glow shifts color, the rings breathe, sparks accelerate, and energy tethers respond as if the robot-human scene is alive in real time. Hold the mouse down and the shield turns into a vertical perspective ellipse.

Live Canvas

Move for energy. Hold the mouse down to rotate the shield into perspective.

Horizontal motion bends hue and tilt. Vertical motion lifts the shield field. Hold mouse = vertical ellipse / diamond perspective.

How the Illusion Works

The base image is drawn first. The sketch then overlays new geometry directly on top of the static shield: glowing rings, counter-rotating star geometry, satellite circles, energy tethers, and particles. Because the overlay is positioned and colored to match the image, the original shield appears to respond to the novice’s mouse in real time.

The sketch uses blendMode(ADD), HSB color values, eased mouse coordinates, polar-to-Cartesian spark motion, and a mouseIsPressed perspective scale. The source panel below shows the known-working p5.js editor version: it runs even before the base image is uploaded by using a neutral HSB background fallback.

To reconstruct the full image-backed version in the p5.js editor, download the base image, upload it into an images folder, then uncomment the loadImage() line noted at the top of the copied source.

  1. Copy the source below into sketch.js in the p5.js editor.
  2. Run it once as-is. It should work immediately with a dark HSB fallback background.
  3. Download aiRobotMentoringHuman.jpg from this page.
  4. In the p5.js editor’s Sketch Files panel, create an images folder and upload the image there.
  5. In preload(), uncomment bgImg = loadImage('images/aiRobotMentoringHuman.jpg'); and comment out bgImg = null;.