working with P5js this week.

we learn plenty of new interest an arraya is a list of values that you should separate in comas inside of solit brakets. Arrays are simply store for multiple objects that can be organize in square brackets and can be aces in numerical index through the code. With the first item of the array starting at zero you can also create a loop.

Also we lear to add boolean to our code for true or false statements that can be interpret such as if this is true do this, this method could test a function and keep track of the process while addition or subtracting functions. in this example we can see that if the statement is true and the mouse will go in the middle of the rectangle the square will light a red color inside and if press the background will change to green.We can find more information on this site https://github.com/processing/p5.js/wiki/JavaScript-basics#data-type-boolean

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