Gestures & WebcamPremium

Runic Fire Circles

One hand raised to the webcam is wrapped in fire filaments; raise the other and a rune circle opens on each palm. No gesture to learn, and a cursor demo without a camera.

WebcamMediaPipeHand trackingCanvas 2D

Updated

This effect is part of Effect.Labs — 846 vanilla effects, some free, some premium. Gestures & Webcam has 11 effects, all premium. Explore the category →

3 usage examples

Join the Embers or the Runes with one hand or two — entry screen of a medieval fair's treasure trail — Runic Fire Circles example 1

① Join the Embers or the Runes with one hand or two — entry screen of a medieval fair's treasure trail

WhenAt the start of the game, each player steps in front of the screen. One hand up: fire wraps it and the Embers card lights up. Two hands: the circles open and the player moves to the Runes. The strip at the bottom announces the camp joined.
WhyThe choice is made without touching a screen two hundred people will use, and the visual itself says what was chosen: flames for the scouts, carved circles for the scholars.
Settings238 × 196 px block between the two cards, camera button made smaller and right-aligned, privacy line moved into the strip. The page reads effect.cEnv ten times a second (the effect object sits in scene.frcBase): above 0.5, it is the circles. For the capture, the scene script sets the demo cycle (effect.cycle) just before the second hand disappears.
Two seals spinning around the cover — pre-order page of a novel at a fantasy publisher — Runic Fire Circles example 2

② Two seals spinning around the cover — pre-order page of a novel at a fantasy publisher

WhenThe reader lands on the page of book three: the cover sits in the centre, and on each side a golden seal turns slowly. Nothing to click in the banner; the pre-order button is right below.
WhyThe circles set the tone of the book with no illustration to commission and no video to load, and they stay sharp at any size since the code draws them.
Settings540 × 226 px scene used as decoration: no control bar and no status pill in the HTML, hence no camera; pointer-events: none; scene background recoloured in brown; cover placed above the canvas. The capture shows the two-hand phase. After that, the demo cycle hides one hand for 4.5 s and fire replaces one seal: for two permanent seals, see the "Alternation in demo" setting.
Playing with fire while waiting your turn — ticket queue of a role-playing games festival — Runic Fire Circles example 3

③ Playing with fire while waiting your turn — ticket queue of a role-playing games festival

WhenThe buyer waits, 214 people ahead. Next to the counter, a hand of fire follows the mouse; when it stops moving, the second hand comes back and the circles open. The buyer can also turn the camera on and put a real hand in it.
WhyA six-minute wait goes down better with something to play with, and the tab stays open. The effect needs no instructions: you move, the flames follow.
Settings320 × 260 px block to the right of the counter. The scene script holds the demo cycle on its "one hand" phase while the pointer moves inside the block (it sets effect.cycle); once the pointer is still, the normal cycle resumes.

How it works

Here, the number of hands picks the visual. With a single hand, glowing nodes are born along the bones of the hand, rise in a wavy path for 0.6 to 1.4 s and link to their neighbours with strokes: yellow near the skin, orange higher up, red before they die out. Up to 240 nodes and 90 embers build a web of flames that hugs the hand and follows it.

As soon as a second hand shows up, the fire fades out and a circle opens on each palm: it grows from 40 to 100% of its size in 0.7 s, then spins. Each circle stacks a graduated ring of 72 ticks with four spikes, a band of 18 glyphs, a nine-pointed star, three satellites, a dashed ring, a cog wheel and a glowing core. Seven rotation speeds, in both directions, make it look like a mechanism. The radius is 2.1 times the length of the palm: moving the hand closer makes the circle bigger.

Everything is drawn in Canvas 2D with additive light: no WebGL, no image, no font. The glyphs are an alphabet of 24 invented signs, built by the code from a fixed seed, so they are the same on every load.

Without a camera, two drawn hands play the scene: one follows the cursor, the other faces it and fades out now and then (6.5 s with two hands, then 4.5 s with one) to show the circles and the fire in turn. Clicking does nothing. The captures on this page come from this mode, with the code you buy. The button opens the webcam and loads the MediaPipe hand detector; the analysis stays in the browser and no image or video goes to a server. Google's library, however, sends, on its own initiative, a small usage log to odml.pa.googleapis.com, with no image (version number, processing times): first a minute after it starts, then for every minute of camera use. It is worth stating in your site's privacy policy.

Accessibility

  • Keyboard: the camera button is the only element to reach (Tab, then Enter or Space). The effect has no click and no gesture to confirm: a keyboard user misses no feature.
  • Reduced motion: the demo stays on the two circles, motionless, with no opening, no embers and no alternation: nothing moves until the pointer does. On camera, a single hand gets a fixed web of flames, 63 nodes placed on its bones, that follows it without waving.
  • Screen readers: the drawing is decorative (aria-hidden); the scene carries an aria-label to rewrite for your page, and camera messages go through a role="status" pill.
  • Touch: swiping left to right moves the hand, up and down scrolls the page; a tap has no action. Swipes checked in Chromium touch emulation.
  • Light: no sudden burst. The switch from fire to circles is a fade, each ring varies by 10% at most, at less than one beat per second, and the filaments each flicker at their own pace. .frc-solid on the scene removes 45% of the intensity.

Browser compatibility

Canvas 2D only, 44 KB of unminified JavaScript, no dependency as long as the camera is off. Chromium 149, Firefox 151 and WebKit 26.5 run two independent scenes on one page without a single request, and cut the loop as soon as the scene leaves the screen. Simulated webcam in Chromium and Firefox: four downloads, 10.7 MB transferred, then a POST of 39 to 105 bytes to odml.pa.googleapis.com per minute of camera use (the MediaPipe log), recorded on 4 December over six minutes. Going from one hand to two and back to one was verified in Chromium with hand positions fed into the shipped code, and the detection of a real hand with a test video. Nothing was checked in camera mode in Safari.

Chrome 88+✓ Full (measured)
Firefox 89+✓ Full (measured)
Safari 15+✓ Demo measured · camera not verified
Edge 88+✓ Not verified
iOS Safari 15+✓ Not verified
Android Chrome 88+✓ Not verified

There is no backup rendering to plan for: the drawing only uses Canvas 2D. If the camera is refused or missing, or if the detector cannot be downloaded, the pill says so and the drawn hands carry on. Without JavaScript, what remains is the dark frame, the button and the privacy line.

The code

HTML structure to paste into your page (the CSS + JS come with your purchase):

index.html — structure
<div class="fx-0849-root">
  <div class="frc-scene" data-frc-lang="en" role="region" aria-label="Fire and Rune Circles — one hand: fire filaments; two hands: a rune circle on each palm. Cursor demo, camera on request (processed on your device only)">
    <video class="frc-video" playsinline muted autoplay aria-hidden="true" tabindex="-1"></video>
    <canvas class="frc-canvas" aria-hidden="true"></canvas>
    <div class="frc-bar">
      <button class="frc-btn frc-cam-btn" type="button" aria-pressed="false">
        <span class="frc-btn-ico" aria-hidden="true"></span><span class="frc-btn-txt">Turn camera on</span>
      </button>
      <p class="frc-privacy">No image ever leaves your device.</p>
    </div>
    <p class="frc-status" role="status" aria-live="polite"></p>
    <div class="frc-label" aria-hidden="true">
      <span>Fire and Rune Circles</span>
      <span class="frc-hint">move the cursor · or turn the camera on</span>
    </div>
  </div>
</div>

One-time payment, no subscription — the code is yours forever

Customize

Options passed to the API or data-* attributes:

Option / propertyDefaultEffect
Circle size (JS — palm * 2.1 and 0.38 in _circle) 2.1 × the palm, 38% of the short side at most The first number ties the radius to the hand, the second keeps it inside the scene. The radius never goes below 40 px.
Alternation in demo (JS — (this.cycle % 11) < 6.5) 6.5 s of circles, 4.5 s of fire Replace the condition with true to keep both circles at all times without a camera, with false to show only the fire.
Fire density (JS — 170 * a * dt, cap 240) 170 nodes per second, 240 at most Fewer nodes give an airier fire and lighten the computation, which compares nodes in pairs.
Fire colours (JS — COLS) pale yellow, orange, red Three colours as R, G, B values, from the base of the flames to their tip. The circles have their own, written in each glowStroke call.
Ring speeds (JS — rA to rK) 0.15 to 1.2 radians per second One coefficient per ring; the sign gives the direction. Halve them all for a more solemn circle.
Glyph alphabet (JS — seeded(20260924)) 24 signs, always the same Change the number to get another alphabet, just as stable from one load to the next.
Circle opening (JS — / 0.7 in _circle) 0.7 s How long the circle grows and spins faster when it appears.
Hero variant (HTML — .frc-kiosk, data-frc-start) to add to the HTML Provided in the CSS: headline, text and button over a dark veil on the left; the button starts the camera.

FAQ

Yes, with one line. In render, the wantC variable is 1 when two hands are present and 0 otherwise: write 1 for circles from the first hand, 0 for fire on both. In demo, also pin the alternation ("Alternation in demo" setting), otherwise the second hand keeps fading out.
Read scene.frcBase.effect.cEnv: 0 for fire, 1 for circles, in-between values during the fade. effect.lastCircles gives the centre and radius of each circle drawn on the last frame, handy to anchor an element of your page to it. The effect fires no event: read these values again every 100 ms or so, like the first example.
No. They are neither historical runes nor any existing script: each sign is a vertical stroke to which the code adds one to three branches drawn at random, from a fixed seed. So you can use them with no risk of an unintended message, and get another alphabet by changing the seed.