Week 3 - Variables
Week 3 - Variables
Version #1
Version #2
Version #3
For this project, I added variables for the strokeWidth of the sprinkles, the stroke(s) of the sprinkles, and the stroke and fill for the individual scoops. I also added the option to create a "two-tone" background, which is divided diagonally by creating two triangles. As I was working on the project for Week 2 , I realized that the colors for the scoops and sprinkles would probably work better as variables, so it worked out well for this project. Now it is easier to quickly change the values listed above to achieve different versions of the image. I have included three different ways you could style the image. The difficulty with this project was finding the correct coordinates for the triangles. This was solved by trial and error on the first triangle, then "flipping" the coordinates for the second triangle.
*Note: the code embedded below corresponds to Version #3 depicted above.