Posts

Showing posts with the label code

Trip to SFMOMA

Image
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-Ch...

3D Print Sheriff Star

Image
3D Printing Project! Next week at my school is homecoming! And to kick it off, we have our staff homecoming skit which was "Wild West" themed. So everyone came to school decked in their cowboy gear, with boots, hats, and bandanas.  I, unfortunately, do not have a spare cowboy hat lying around, but I still wanted to wear something fun and cowboy-themed to school, so I decided to create a fun Sheriff Star with my name on it. After looking at a few reference photos, I planned out the code. I would need a module for an equilateral triangle as well as the correct math to shift it in the right place. I'd use a for loop to efficiently place all six little dots in place and I wanted to make the entire thing parametrized (why not! XP) First off: making a parametrized equilateral triangle. My first stabs at this didn't work, until I finally got out a pen and paper and visualized the shape I was trying to create. Then I finally saw the geometry I needed for t...

GWC Final Project

Image
Create your own web page! For our final Girls Who Code project, we all created our very own web page! I decided to make mine like a sort of virtual business card with information about me. You can check it out here .