top of page
Search

January Second Post

  • Writer: Chelsea Yang
    Chelsea Yang
  • Feb 5, 2021
  • 1 min read

This week, I learnt how to use functions. They allow lines of codes to repeat in complicated codes.

I learnt how to translate objects side by side, through translate() function. I fill in the number of pixels I’d like to move the original shape over and down from the origin(0,0).

By putting the code for creating an owl in the function owl() and commanding it twice in the draw function, we saved code space to write the code twice, and instead placing it within a method.

ree


ree

I learnt how to duplicate owls and change them into different sizes, as well as different shades. By changing their fill value and scalar, these values can be varied.

ree

ree

I also learned to return a value through the keyword return. It can return values, words, or numbers after it finishes running the code.


I've drawn my first draft of my final series. It consists of a moving spiral pattern, along with water molecules that move across the screen. This interprets a vortex that sucks in water like the drain, sending a message that our resources may be depleted if we don't learn to cherish it in time.

ree

 
 
 

Recent Posts

See All
Interview

While searching for an interviewee who has interest and understanding in the field of computer science and art, I approached Carol Wang...

 
 
 

Comments


Post: Blog2_Post

Citation: Make: Getting Started with p5.js by Lauren McCathy, Casy Reas, and Ben Fry. Copyright 2015 Maker Media, Inc., 978-1-457-18677-6.

©2020 by Chelsea STEAM 10. Proudly created with Wix.com

bottom of page