Skip navigation
GLM 5.1 vs GLM 5.2 6 advanced HTML canvas challenges: 💧 Ink diffusing in water ⚔️ Energy-blade duel…
0:00 / 0:53

GLM 5.1 vs GLM 5.2 6 advanced HTML canvas challenges: 💧 Ink diffusing in water ⚔️ Energy-blade duel…

stevibe

28K followers

Visit on X
1,617 likesDownloadOriginal post

347,899 views

GLM 5.1 vs GLM 5.2 6 advanced HTML canvas challenges: 💧 Ink diffusing in water ⚔️ Energy-blade duel 📱 Slide to unlock 🅿️ 360° parking assist 🔥 Burning letter to ash 🏠 Build-a-house sequence Pure canvas, zero libraries.

48 Comments

Comments from the original post on X (Twitter)

  • rijndael's profile picture

    @rot13maxi

    glm5.1 lightsaber duel is sweet

    59 likes

  • stevibe's profile picture

    @stevibe

    Yeah especially when they crossed!

    12 likes

  • Tom Turney's profile picture

    @no_stp_on_snek

    dang dude great visuals and choreography.

    16 likes

  • stevibe's profile picture

    @stevibe

    Glad you liked the rhythms!

    4 likes

  • stevibe's profile picture

    @stevibe

    The prompt (1/2): 💧 Ink diffusing in water Create a single HTML file with a canvas animation of a single drop of black ink falling into a glass of clear water and diffusing. On impact the ink should bloom outward in turbulent, billowing plumes — fractal tendrils curling and branching as they spread and slowly disperse into faint clouds. Use real fluid-like motion (advection and diffusion), not simple expanding circles. The ink should have density variation, with dark dense cores and wispy translucent edges. Soft lighting from above. 60fps, no external libraries. ⚔️ Energy-blade duel Create a single HTML file with a canvas animation of a short, cinematic duel between two hooded warriors wielding glowing plasma blades — one blade blue, one red. Set it on a dark, atmospheric backdrop with drifting embers or mist. The warriors clash in a fast, choreographed exchange of swings and parries. The core effect: each blade leaves a smooth, motion-blurred light streak that traces its arc through the air, with a bright white-hot core, a colored glow, and a trail that fades over a few frames. Blades should cast dynamic colored light onto the fighters and the ground, and clashes throw off sparks. Fluid, weighty movement — no stiff robotic motion. 60fps, no external libraries. 📱 Slide to unlock Create a single HTML file with a canvas animation of a smartphone lock screen unlocking. Show a phone screen with a large clock and date over a soft gradient wallpaper, and a "slide to unlock" track at the bottom with a draggable handle. A shimmering light sweep should animate continuously across the "slide to unlock" text (a moving highlight gradient). Then animate the handle sliding all the way across; on completion, the lock screen smoothly slides/fades away to reveal a home screen — a grid of rounded app icons (original designs) that gently zoom and fade into place, with a subtle parallax on the wallpaper. Polished, fluid, Apple-grade easing throughout. 60fps, no external libraries. 🅿️ 360° parking assist Create a single HTML file with a canvas animation simulating a modern car's 360° surround-view parking assist as it parallel-parks into a tight roadside gap (the classic S-shaped maneuver). Layout: Split the screen into two panels. The left panel is the car's infotainment display showing a top-down bird's-eye ("around-view") composite — the car rendered from directly above in the center, the road surface and curb, and an empty parking gap bracketed by two parked cars. The right panel shows the steering wheel from the driver's seat, rotating in sync with the maneuver. Dynamic guidelines: Overlay predicted-path lines projecting from the car in the bird's-eye view — two curved trajectory lines marking the car's width, divided into colored distance bands (green = far, yellow = mid, red = close). These lines must bend left or right based on the current steering angle using correct steering geometry (sharper wheel angle → tighter turn radius), and they must update every single frame as the wheel turns and the car moves. Animation: Auto-play the full parallel-parking sequence — drive forward alongside the front car and stop, crank the wheel and reverse while curving in, then counter-steer and straighten as the rear end clears, and finally ease forward to center in the spot. The car body should trace a smooth, continuous S-path. Critical constraint: The steering wheel rotation, the curvature of the guidelines, and the car's actual path must stay perfectly consistent with one another at all times — turn the wheel left, the guidelines bend left, the car arcs left. Add subtle UI chrome (a distance readout, proximity warning arcs that flash red as the car nears the parked cars), soft shadows, and clean flat-design styling like a real car display. 60fps, no external libraries.

    9 likes

  • stevibe's profile picture

    @stevibe

    The prompt (2/2): 🔥 Burning letter to ash Create a single HTML file with a canvas animation of a handwritten letter burning. Show an aged, slightly yellowed sheet of paper with visible handwritten cursive text (procedurally drawn lines are fine) resting on a dark wooden desk. After 2 seconds, a flame ignites at the bottom-right corner and spreads organically across the page — the burn front should advance with an irregular, noisy edge, never a straight line. Just ahead of the flames, the paper should darken and brown (scorching), then char black, then disappear entirely, revealing the desk beneath. Render the fire with layered particles: a bright white-yellow core, orange mid-flame, and translucent red tips that flicker and lick upward. Glowing embers should detach from the burn edge and drift upward on turbulent air currents, fading from orange to gray. Add wisps of semi-transparent smoke rising and dispersing above the flames, and a warm flickering light that the fire casts onto the surrounding desk. The entire page should be consumed in roughly 15 seconds, leaving only a few glowing ash fragments that slowly dim. 60fps, no external libraries. 🏠 Build-a-house sequence Write a single HTML file with a full-page canvas, no libraries. Animate the construction of a simple 2D cartoon house in 7 stages over ~25 seconds against a pale blue sky with a green ground line: (1) foundation - a gray rectangular slab rises from underground, (2) walls - four vertical wall segments extend upward from the foundation corners, (3) wall fill - tan/beige siding fills in between the wall frames, (4) roof - two triangular roof panels slide in from above and meet at the peak, with red shingle texture appearing row by row, (5) door - a brown door fades in on the front wall with a small gold doorknob, (6) windows - two windows appear on either side of the door with visible cross-frames and blue glass, (7) details - a chimney extends up from the roof, a small puff of smoke begins rising from it, a path of stepping stones appears leading to the door, and a small tree grows beside the house. Each stage should have a brief caption at the top ("Laying foundation", "Raising walls", etc.). Between stages, pause for 0.5 seconds. Loop continuously.

    9 likes

  • Studio Zamudio One's profile picture

    @StudioZamudio

    I've started repeatedly prompting 5.2 the same prompt, and found wildly different results. I think we are getting to a point where we will have to start measuring with averages.

    8 likes

  • stevibe's profile picture

    @stevibe

    Maybe try lowering the temperature?

    9 likes

  • Studio Zamudio One's profile picture

    @StudioZamudio

    Depends on what I'm doing. It's nice to get examples to chose from. But I'm concerned with single comparisons between last and next model versions, without lots of repeat comparisons. That takes a lot of time. I guess I could just automate it. GLM is my main three.js llm.

    2 likes

  • 🇵🇱🇵🇱🇵🇱🇵🇱🇵🇱🇵🇱🇵🇱🇵🇱🇵🇱🇵🇱🇵🇱🇵🇱's profile picture

    @pawelk411

    how is 5.1 better at pretty much everything

    8 likes

  • filipe's profile picture

    @filicroval

    love the visualisations! im pretty sure i'd get a ticket if i parked like glm 5.2 tho

    5 likes

  • stevibe's profile picture

    @stevibe

    Appreciate it! Yep, two wheels on the pavement haha

    3 likes

  • Alan Palacio's profile picture

    @abpalaciot

    I would think that 5.1 is actually 5.2; otherwise it seems like a regresion in some cases

    5 likes

  • Tom Davenport's profile picture

    @TomDavenport

    I prefer 5.1 on most of these!

    5 likes

  • Canopy Wave's profile picture

    @CanopyWave_AI

    Honestly, GLM 5.1 remains one of the strongest open-source models for this kind of creative coding. Still love it.

    4 likes

  • ContextBaron's profile picture

    @ContextBaron

    that looks so cool for comparison

    2 likes

  • brock's profile picture

    @brockliddicoat

    i feel like it lowkey did worse on the old iphone animation and the house building animation was super botched

    2 likes

  • keys 🧪's profile picture

    @u1tra_instinct

    Glm 5.1 seemed to be more more detailed in generated outcome may it be the tweaks they did to glm 5.2 for speed at sacrifice Over quality ?

    2 likes

  • ESchwaa's profile picture

    @ESchwaa

    There are some aspects of 5.1 that I almost like better

    2 likes

  • Foreman Panda's profile picture

    @4manPanda

    Example tests cannot fully reflect the full picture; actual work tests are still needed.

    2 likes