Trip to SFMOMA

I had a really fun time visiting San Francisco’s Museum of Modern Art (SFMOMA) last week with my friends!

One of my favorite pieces there was the piece by Ellsworth Kelly, Spectrum Colors Arranged by Chance.

I thought it was really neat that he was inspired by randomness and he even used a random system of color selection in order to make sure that when creating these pieces he wasn’t guided by his own subconscious guideline for a certain composition. 
That got me thinking about randomness in cs and so I created a little project for generating random grids like the piece above. 
I started off with a small Python script using the built-in Turtle graphics library to animate this:
But then I decided it would be best to optimize it as a web page using JavaScript instead so it’d be easier to access and view. I also added a button to keep generating new random grids. 
You try it out yourself here: parmita52.github.io/Spectrum-by-Chance/
And check out the code on GitHub here: github.com/parmita52/Spectrum-by-Chance

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: