Skip to main content
100%

6 Reflections

✓ Published0🌍 Public

This example arranges six copies of a Buddha image into a reflective grid pattern on an HTML5 Canvas. The original image appears at the top-left, with copies placed to its right and below, creating a symmetrical layout. Additional copies are mirrored using Canvas scale and restore transforms to flip the image horizontally and vertically, simulating reflections across axes. The code loads the image via the Image API and draws all placements with drawImage, using pixel coordinates to maintain exact spacing without external libraries.

AI-generated description

React Starter code.

MIT Licensed

Similar vizzes