top of page
Writer's pictureValeria Dominguez :)

P5 Codes

Updated: Nov 12, 2019

If you want to separate Shapes, you must change the X and the Y values and leave the width and the height the same.

var x is a local variable

When you place a variable, for example "x", into a single function, only that function will be able to use it. If you place the variable in the beginning of the code, all functions will be able to use it.

If and While Loops

The difference between these two loops are that the if statement will execute the code one time while the while loop executes the loop until it is no longer able to.

2 views0 comments

Recent Posts

See All

Week of May 4th

The webinars given out by the Advanced Placement Youtube Channel are helpful because they are going over the create task and are able to...

Psuedocode and Flowchart

Flowchart: https://www.lucidchart.com/invitations/accept/cc05222f-f576-4ded-b0b2-0e2d8596dbf7 Pseudocode: https://editor.p5js.org/Valeria...

Comments


images.jpeg
images.jpeg
33bbd948ce37bf4c73fbf029b5214fbb.jpg
3bbd948ce37bf4c73f29b5214fbb.jpg
bottom of page