IS71014B Workshops in Creative Coding 1 (2016-17) : Genetic Photobooth Modification

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

Learn.

gold Philip Liu

IS71014B Workshops In Creative Coding 1


(2016-17)
Dashboard Academic Year 2016-2017 Computing Postgraduate
IS71014B (2016-17) Week 18 - Advanced generative algorithms
Genetic Photobooth Modification

Genetic Photobooth Modification

Genetic Photobooth modification


In this assignment you'll have to study the code provided in the Genetic Photobooth example and
modify it to use dierent shapes / primary elements.

Ideas to explore:
Idea 1: Replace the triangles as a gene/unit and use circles or ellipses instead. How big would
the size of the gene in that case be? How about 4 for color (RGBA), 2 for location (x,y), 1 or 2
for width, height (circle vs. ellipse). That's a total of: 8-9. You shouldn't need to change the
DNA class, but only the getPhenotype() function of the Individual() class. See how
circles look in greyscale in

Evolving Darwin - Genetic Algorithm

of an evolving Darwin painting.


Idea 2: How about using letters of various colors and size in order to reproduce the image
taken? A rough estimate is that the gene in that case would be 9. Color (RGBAA) would take 5
again, 2 for location (x,y), 1 for size and 1 to represent the type of letter in the image.

Last modified: Saturday, 4 March 2017, 6:37 AM

ADMINISTRATION
Course administration

You are logged in as Philip Liu (Log out)


IS71014B (2016-17)

You might also like