Welcome to week 1 of Intro to Creative Web Dev!
This week is all about getting set up and diving into writing code.
Work through the activities in this page to complete the week!
First, read through these tutorials:
Get ready to write some code!
Tell the computer what to do.
Think about your answers to these questions:
What’s your favorite p5.js variable or function, and what does it do?
Note: There is no wrong answer to this question. If you don’t have a favorite, pick one you used most often, or one that surprised you.
What does the p5.js
quad() function do?
Note: This function was not mentioned in any of this week’s content. I’m testing that you can research and read about new p5.js functions you haven’t seen before. Feel free to use a search engine and resources like the p5.js reference to answer this question.
Congratulations, you now know how to write code!
To practice that, you’ll be creating a p5.js sketch and sharing it with the class on Friday.
Your sketch must run without any errors. Your sketch must contain at least ten function calls. You can draw the same shape multiple times (e.g. 10 circles, or 5 circles and 5 squares), and you can have more than 10 function calls. But I’ll be looking for a minimum of ten.
What you draw is up to you, but here are some ideas:
I’m not grading on design, so don’t worry about making it look perfect! Focus on writing code that runs without any errors, and have fun!