Category Archives: Study Notes

M1D29 – Loops

For Loop It tells the computer what to do, and how to do it. Draw does a self-loop, so this continuously does the loop. Example from the lesson today, that I wanted to review more later: Variable i or index … Continue reading

Posted in Study Notes | Tagged , , , | Leave a comment

M1D28 – Working on Midterms

This code is working for scaling, but I did it through trial and error of different combination of mathematical statements. I need to check this back to look for pattern, so I would know how I did it.

Posted in Study Notes | Tagged , , , | Leave a comment

M1D27 – Conditionals

Types Numbers Boolean Strings Mixing Types and Performing Operations Working with Booleans frameCount – https://p5js.org/reference/#/p5/frameCount parseInt – https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/parseInt dist function https://p5js.org/reference/#/p5/dist Buttons https://p5js.org/reference/#/p5/createButton IMPORTANT NOTE FROM THIS LESSON: Sample nesting from the lesson: Debugging Exercise Note: I am still confused … Continue reading

Posted in Study Notes | Tagged , , , | Leave a comment

M1D26 – Conditional Logic

else and elseif else if Allows us to set up multiple conditions for a chain together Rule in nesting – if the first action happens, it will no longer check the succeeding conditions. If two conditions is mandatory, nest the … Continue reading

Posted in Study Notes | Tagged , , , | Leave a comment

M1D25 – ITP1

+ will let the console log add the value to the string Debug Assignment https://d.pr/i/opXs3L/e9fpGoEZut The Elegant Coder

Posted in Study Notes | Tagged , , , | Leave a comment

M1D24 – ITP1 W5 Assignments

https://d.pr/i/Z3yBZu/hufUkBcdg8 For Reading 1. Extra events p5 commands to study: Appears in case 303 2. Operator shorthand See if you can work out how to use these: 3. Math functions p5 commands to study: Appears in case 303 – later … Continue reading

Posted in Study Notes | Tagged , , , | Leave a comment

M1D23 – ITP1 – Week 5

This code above creates an ellipse in random size and within the given conditions in every refresh- width/2, height/2, random() * 250, random() * 250 Code placed inside draw creates a loop. In this example code above, it creates the … Continue reading

Posted in Study Notes | Tagged , , , | Leave a comment

M1D22: ITP1 Week 1

P5.js pixel – tiny dots on the computer arranged in a grid In p5.js, we need to create a canvas to draw to We always start with the x coordinate and then the y coordinate. It’s called Cartesian coordinate system … Continue reading

Posted in Study Notes | Tagged , , , | Leave a comment

M1D21: Javascript – Working with Strings

Transform and Manipulate Strings .length – counts the number of characters of a string including the space strings are treated as what are called objects, and different objects have different properties. A property of an object can be accessed by … Continue reading

Posted in Study Notes | Tagged , | Leave a comment

M1D20: Javascript Variables

Variable Declaring a Variable In this program, the word “message” is now a reference to the value “Hello!”, so whenever I use “message” in the program, as long as I don’t change its value, it will always mean, “Hello!”. Reassigning … Continue reading

Posted in Study Notes | Tagged , | Leave a comment