COMPUTER GENERATED ART #THISISMYCLASSROOM #PROGRAMMING #STEAM

COMPUTER GENERATED ART #THISISMYCLASSROOM #PROGRAMMING #STEAM

I wanted to create a task that allowed students to create a computer program in Python that would automatically create its own artwork but be customisable so that each student could experiment and personalise their own program to their tastes.

It’s a rough Python 3 program using the Turtle library and an array of Turtles but so far it has produced some really nice work. In the images shown below the program uses a user-defined function that draws a randomly sized square. I thought this would be easy for the students to understand and hack into something new!

Of course art can be created as a response to an external stimulus so a possible extension of this program would be to get input from the user (colours, mood, age) or calculate a range of colours from an input sensor or device (temperature, time, image).

The code is below! Any suggestions or improvements would be appreciated!

To view or add a comment, sign in

More articles by Ian S.

Explore content categories