Skip to content

An evolutionary art engine that uses genetic algorithms, multi-objective optimization, and natural selection to create unique digital artworks. Features real-time evolution tracking, genome comparison tools, and Hall of Fame archiving.

License

Notifications You must be signed in to change notification settings

JamesTheGiblet/artforge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🎨 Primordial

An evolutionary art engine that uses genetic algorithms to create unique digital artworks through natural selection. Experience the birth of digital life as abstract art evolves before your eyes!

🌟 New here? → START_HERE.md - Perfect introduction with guided pathways!

What It Does

Primordial evolves populations of digital organisms (genomes) that represent abstract artworks. Each genome contains:

  • Colors - Hue, saturation, lightness palettes
  • Shapes - Circles, rectangles, triangles, lines, arcs
  • Movements - Rotation, translation, pulsing animations
  • Parameters - Complexity, symmetry, rhythm, density

Through tournament selection, crossover, and mutation, these genomes compete for survival based on aesthetic fitness criteria.

📖 Documentation

✨ Features

🧬 Evolution Engine - 5 fitness environments, multi-objective optimization, hall of fame system 🎨 Modern UI - Dark/light themes, loading screens, keyboard shortcuts, visual feedback

� Professional Export - PNG/SVG downloads, social media integration, batch archives

🎮 Interactive Controls - Manual breeding, parameter tuning, real-time environment switching

📊 Analytics - Evolution tracking, genome comparison, fitness visualization

📋 Complete Features Guide → - Detailed documentation of all capabilities

🚀 Quick Start

  1. Launch - Open index.html in a modern browser
  2. Evolve - Click "Auto-Evolve" or press SPACE
  3. Explore - Try different environments and themes
  4. Save - Press S (PNG) or V (SVG) to export art

Complete Quick Start Guide → - Get running in 5 minutes with step-by-step instructions, experiments, and pro tips!

⌨️ Keyboard Shortcuts

Power up your evolution workflow with these handy shortcuts:

  • SPACE - Evolve one generation
  • R - Reset population
  • S - Save best artwork as PNG
  • V - Export best artwork as SVG
  • T - Toggle dark/light theme
  • A - Toggle auto evolution on/off

💡 Note: Shortcuts are disabled when typing in input fields

Evolution Parameters

  • Mutation Rate - Probability of random changes
  • Population Size - Number of genomes per generation
  • Elitism - Top N genomes guaranteed survival
  • Tournament Size - Selection pressure strength

Environments

Each environment rewards different aesthetic qualities:

  • Balanced - Rewards complexity, color harmony, and movement
  • Symmetry - Prefers ordered, patterned compositions
  • Chaos - Favors high complexity and unpredictability
  • Minimalist - Simple, clean, zen aesthetics
  • Organic - Flowing forms and natural color palettes

🔧 Technical Details

Frontend Technologies

  • Vanilla JavaScript (ES6+) - Clean, modern code architecture
  • HTML5 Canvas - High-performance artwork rendering
  • CSS3 Variables - Dynamic theming system
  • Web Audio API - Sonification of evolution (optional)
  • Chart.js - Real-time fitness visualization
  • JSZip - Hall of Fame archive generation

Genetic Algorithm Implementation

  • Tournament Selection - Competitive genome selection
  • Single-Point Crossover - Genetic recombination
  • Gaussian Mutation - Realistic evolutionary changes
  • Elitism Preservation - Protect best performers
  • Multi-Objective Fitness - Complex aesthetic evaluation

Modern UX Features

  • CSS Custom Properties - Seamless dark/light theming
  • LocalStorage - Persistent user preferences
  • Keyboard Event Handling - Power user shortcuts
  • SVG Generation - Vector graphics export
  • Progressive Loading - Smooth initialization experience
  • Responsive Design - Mobile-friendly interface

📸 What It Looks Like

Dark Theme (Default)

Rich, vibrant gradients with deep blacks create a dramatic canvas for evolution:

  • Gradient background: Deep blue → Red → Gold
  • Glass-morphism panels with blur effects
  • High contrast for optimal viewing

Light Theme

Soft, pastel tones create a gentle, professional aesthetic:

  • Gradient background: Light blue → Pink → Cream
  • Semi-transparent white panels
  • Easy on the eyes for extended use

Key Visual Elements

  • 🎨 Real-time Canvas - Watch genomes render as they evolve
  • 📊 Evolution Charts - Track fitness progress over generations
  • 🏆 Hall of Fame Gallery - Showcase of your best evolved art
  • ⚡ Loading Animation - Beautiful spinner with progress updates
  • 🔔 Keyboard Hints - Elegant notifications for user actions

🌟 Origin Story

Originally built in approximately 4 hours on a mobile device using HTML editor apps, Primordial has evolved into a sophisticated evolutionary art platform.

Recent Evolution (October 2025):

  • Professional UI/UX enhancements
  • Modern theme system implementation
  • Advanced export capabilities
  • Power user keyboard shortcuts
  • Enhanced social media integration

Because sometimes the best projects come from boredom... and then grow into something beautiful.


"From chaos, beauty emerges through the power of digital evolution" 🧬✨

About

An evolutionary art engine that uses genetic algorithms, multi-objective optimization, and natural selection to create unique digital artworks. Features real-time evolution tracking, genome comparison tools, and Hall of Fame archiving.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages