Inspiration
I love patterns in textiles, kaleidoscopes and snowflakes, where one small shape repeats into something beautiful. I wanted anyone, even someone who has never drawn, to be able to make that kind of art in a few seconds.
What it does
Loom turns one drawn line into a woven pattern. You draw on a dark cloth and Loom repeats your stroke around the centre with 2 to 16 fold symmetry.
- 6 color palettes
- Adjustable thread width and symmetry
- Optional mirroring of each segment
- Undo, clear, and "Weave for me" (an automatic generative pattern)
- 6 starter weaves to load and draw over
- Save your weave as a PNG
- Two themes: Fairy day (rainbow, falling sparkles, a flying fairy and a forest with elves) and Night sky (twinkling and falling stars)
How I built it
Loom is a single-page site in plain HTML, CSS and JavaScript. The drawing uses the Canvas API: each stroke is stored as a list of points and redrawn with rotation and mirroring, which makes undo and resizing simple. The background effects (stars, sparkles, fairy, forest) are drawn with canvas and SVG. The layout is responsive and respects the "reduce motion" setting.
Challenges
- Keeping the drawing smooth while repeating each stroke up to 32 times
- Making the canvas look sharp on different screen sizes
- Making two very different themes feel like one design
What I learned
How to work with the Canvas API, symmetry math, and theme switching, and how to keep animations light and accessible.
What's next
A shared gallery of weaves, a "share your pattern" link, and export as SVG or phone wallpaper.
Built With
- canvas-api
- css3
- github
- html5
- javascript
- svg

