Generative triangle art with celestial aesthetics. Each refresh creates a cosmic landscape of magical triangles, glowing planets, frost particles, and arc patterns arranged in a 5×5 grid.
- Celestial Theme — Cosmic colors and magical atmosphere
- 5×5 Grid — 25 positions for planets, frost particles, and magical triangles
- 17 Arcs — Rotating triangular arc patterns
- Dynamic Colors — Randomly generated color palettes
- Glow Effects — Radial gradients and glow layers
- Animated — Continuous rotation and pulsation
- Save & Share — Download as PNG
- Apparel Mode — Preview artwork on a T-shirt mockup
- Responsive — Works on desktop, tablet, and mobile
- p5.js Powered — Built with the creative coding library
- Keyboard Shortcuts:
R— RegenerateS— Save imageT— Toggle apparel viewSpace— Regenerate
| Parameter | Value | Description |
|---|---|---|
| Grid Size | 5×5 | 25 positions total |
| Arc Count | 17 | Rotating triangular arcs |
| Planets | 25 | Glowing celestial bodies |
| Frost Particles | 25 | Delicate ice crystals |
| Magical Triangles | 25 | Gradient-filled triangles |
- 17 rotating arcs arranged in concentric circles
- Each arc is composed of 32 triangular segments
- Gradient colors transition across each arc
- Glowing stroke effects create depth
- 25 glowing planets in a 5×5 grid
- Radial gradient fills
- Glow layers create luminous halos
- Pulsating sizes add life
- 25 delicate ice crystals
- Translucent white triangles
- Random sizes and opacities
- Scattered across the grid
- 25 gradient-filled triangles
- Random sizes and positions
- Star-like color palette
- Radial gradient fills
# Clone the repository
git clone https://github.com/reyrove/Triangulum-Generative-Art.git
# Navigate to the directory
cd Triangulum-Generative-Art
# Open in browser
open index.html
# or use a live server- Push to GitHub
- Go to Settings → Pages
- Select branch
mainand root folder - Your site will be live at
https://reyrove.github.io/Triangulum-Generative-Art
The artwork creates a cosmic triangle-based landscape:
-
Setup:
- Random color palettes for arcs, stars, and planets
- 5×5 grid positions calculated
- Frost particles, planets, and magical triangles placed
-
Rendering:
- Background with random dark/translucent color
- Planets drawn with glow effects
- 17 rotating arcs with triangular segments
- Frost particles and magical triangles overlaid
-
Animation:
- Continuous rotation of arc patterns
- Pulsating planet sizes
- Dynamic color shifts
- Always evolving visual experience
Triangulum-Generative-Art/
├── index.html # Main application (all-in-one)
├── Triangulum.jpg # T-shirt mockup image
├── fav.svg # Favicon
├── demo-screenshot.jpg # Website demo screenshot
├── README.md # This file
└── LICENSE # MIT License
- p5.js — Creative coding library
- Canvas API — 2D rendering with gradients
- CSS Flexbox/Grid — Responsive layout
- GitHub Pages — Hosting
| Action | Keyboard | Button |
|---|---|---|
| Regenerate | R or Space |
Click "regenerate" |
| Save Image | S |
Click "regenerate" |
| Toggle Apparel | T |
Click "apparel" |
Every element in the artwork is built from triangles. From the arc segments to the planets and frost particles, triangles form the fundamental visual language.
Colors are generated with cosmic inspiration—deep purples, vibrant magentas, icy blues, and warm golds. Each refresh produces a unique color world.
Multiple visual layers create depth:
- Background with subtle transparency
- Glowing planets with radial gradients
- Rotating arc patterns
- Frost particles and magical triangles
The artwork animates continuously, with arcs rotating and planets pulsating, creating a living, breathing cosmic scene.
The application automatically adapts to:
- Desktop screens
- Tablets
- Mobile phones
- Landscape orientation
- Various aspect ratios
- Small screens (down to 380px wide)
Contributions are welcome! Feel free to:
- Fork the repository
- Create a feature branch
- Submit a pull request
- Additional grid sizes
- New triangle patterns
- Interactive controls
- Color palette presets
- Performance optimizations
- More apparel mockups
MIT License — see LICENSE file for details.
- Created with p5.js
- Inspired by celestial patterns and triangular geometry
- Special thanks to the creative coding community
Built with ❤️ and triangular dreams
