Skip to content

Ensemble

In Ensemble, a fictional store, choose a piece from the shop grid, a recommendation, the outfit list, the thumbnails beside the model or the tool rail, and a line of light sweeps over the model as the new piece appears. The total, the fit scores and the recommendations change with it. Drag the model to turn it on its platform, switch to the fitting-room view, or ask the stylist for a full look. Under it sit masked compositing in Canvas 2D, a pixel check across all 81 outfits, and a Python build that repairs the photos the same way on every run.

  • html5
  • css3
  • javascript
  • canvas
Format
Interactive experience
Platform
Desktop + Mobile
Engine
Canvas 2D
Type
Concept

How It Works

1
On click or tap

Pick

Every way of choosing a piece, the stylist included, goes through one function, which saves the outfit for undo, changes the state and redraws everything that shows it.
2
On every change

Composite

Each changed piece is masked in from its own photo over the base outfit, and the soft edge of its mask leaves a soft seam.
3
On every change

Reveal

The new outfit is drawn off screen and revealed behind a moving line of light, and the old outfit never shows through the new photo's transparent background. With the system setting for reduced motion on, the swap lands at once and the totals jump straight to their new values.
4
On drag

Turn

Dragging turns the model a full circle through 48 frames cut from a generated turntable video, in any outfit. Each piece has its own edited copy of that video, masked into every frame the same way the photos are. Let go and she settles back to face front, and the left and right arrow keys turn her too.

Engineering

  • Nine photos, 81 outfits

    The nine photos share one pose and frame, and each changes one piece from the base outfit. A mask takes only that piece from each photo, so any mix of top, skirt, shoes and bag draws from the base plus up to four masked swaps, with no photo per outfit.
  • Every outfit checked

    A check draws each of the 54 outfits that swap the bag and counts pixels of the old bag still showing, which found 2,727 with the first-pass photos and masks and none with the shipped ones. A second check composites all 81 outfits in the browser and compares each region with the photo it comes from, and no channel is off by more than 2 of 255.
  • Photos repaired at build

    A Python build script prepares the photos before they ship. It removes a faint haze around the figure that showed as a pale patch, widens the bag masks to cover the old bag's strap, and swaps the branded clasp on one bag for a plain lock, so every product in the store stays invented. Rerunning the script writes identical bytes, so the repair can be rebuilt and reviewed at any time.

More projects

Get in touch

I bring design judgment and hands-on engineering together, using AI-assisted workflows to move from creative intent to tested, maintainable digital experiences.

jeffkliu@gmail.com