Now that we have started looking at code, I want to mention a few specifics about how code will work and what it will look like on this site.
You have hopefully already noticed, during all of these first three weeks that there are specific code blocks. These should be displayed in your browser with a dark grey background and utilize a monospaced font. In theory this should look like code.
Example Code Block
This is what code will look like in your browser on this site.
This code will also be highlighted so that the syntax of the code is more apparent.
When appropriate, there will be information about what the code is you are looking at in the upper-right hand corner. Typically, for this course, this will be one of;
sketch.js
file.$
).Whenever possible and appropriate, I will also work to show you what the code output we are working on should look like. These sections will be surrounded with a big magenta/pink border.
Also, whenever possible, I will try to provide code output in a way that is editable, changeable, and playable, by you. These will still occur in the magenta code blocks, but will also include a tab’d bar within, that at a minimum will include;
If you see one of these sections, you can;
Try it below with the “Hello World!” example.
To do this;
"Hello World!"
bit in line 2,Below many code examples, there will also be a number of links. These are, and do the following;
These links will occur underneath code examples when appropriate and available.
Within this course website, you might see long blocks, like the following. This is an example of pulling together all of these details with the “p5 Hello World” example.
[ Code Download ] | [ View on GitHub ] | [ Live Example ] |
I addition providing individual downloads of each code example, you also have the option of downloading a zip’d folder of all code examples from a week. Links to these downloads will typically be available from the week’s overview page. These are also available directly from the lecture_code directory in the course resources git repo
However, if you would like the code examples for this week, you can down load them here, now!