Skip to content

This program uses a genetic algorithm to match a grid of rectangles with a random HEX color to a target rectangle's HEX color.

Notifications You must be signed in to change notification settings

treturner/color-matcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Genetic Color Matcher

This is a project made to explore genetic algorithms in programing. The main idea is to create a grid of rectangles (DNA) each with a random HEX color (Genes), and then have the grid of colors get closer to a target member with each new generation.

Getting Started

These instructions will get you a copy of the project up and running on your local machine.

Installing

All you need is Java installed on your computer and the latest version of Processing installed aswell.

Deployment

You can change

boolean sort = true;

To

boolean sort = false;

And vice versa, to toggle the sorted or random display of colors.

Built With

Authors

Acknowledgments

  • Daniel Shiffman and his YouTube channel The Coding Train for introducing me the concept and practice of genetic algorithms.

About

This program uses a genetic algorithm to match a grid of rectangles with a random HEX color to a target rectangle's HEX color.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published