GithubHelp home page GithubHelp logo

genetic-drawing's Introduction

About

GeneticLeonardo is a program that "evolves" drawings. The chromosomes encode the position, shape and color of 50 polygons. The fittest chromosomes are those who produce images most like a given image.

The goal is to approximate any image with only 50 polygons.

Here's how it works:

  1. Generate a random population of chromosomes

  2. Produce images by interpreting these chromosomes

  3. Select the chromosomes that produce the best images

  4. Mate the best chromosomes by exchanging information

  5. Mutate the new chromosomes slightly

  6. Kill the worst ranked chromosomes

  7. Repeat from step 2 until satisfied

Download

An executable version can be downloaded from:

http://github.com/ynd/genetic-drawing/raw/master/genetic_drawing-0.1.zip

Contributing

You are more than welcome to contribute to this project! There is room for a lot of improvement.

Source code

The code is released as Open Source under the BSD license.

A zip of the source code is available at:

http://github.com/ynd/genetic-drawing/raw/master/genetic_drawing-src-0.1.zip

A zip of an earlier version which uses Genetic Programming is available too:

http://github.com/ynd/genetic-drawing/raw/gp/genetic_drawing-gp-src-0.1.zip

Note that the GP version doesn't converge very well yet.

Source guide

The most important classes are:

Screenshot

Cool hu?

genetic-drawing's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.