Week 02
Introduction and Drawing
Discussion
Map of Computer Languages
http://www.pfnp.me/wp-content/uploads/2012/11/programming-language-history2.png
Popular Languages these days
https://www.computerscience.org/resources/computer-programming-languages/
https://spectrum.ieee.org/static/interactive-the-top-programming-languages-2018
1. What would be a computer programming project?
2. Server-side vs. client-side
What is server? Service!
What is client? User!
3. CDN and LOCAL
A. CDN : Content Delivery Network
What is CDN? https://www.cloudflare.com/learning/cdn/what-is-a-cdn/
What is CDN? https://cdnjs.com/about
p5.js : https://cdnjs.com/libraries/p5.js
B. Local : Open up a new folder and Download file
archive ยท 230KB
C. Live Coding
Go to https://alpha.editor.p5js.org/ (Recommended)
Go to https://jsfiddle.net/kdoodoo/fcsv9kw2/
4. LET'S START WITH P5.JS
A. function setup() and function draw()
function setup() is static, not changing over time.
function draw() is continuously changing over time.
B. Canvas in the web browser

Unlike mathematical quadrant origins, the origin (0,0) of the web browser canvas is at the top-left corner.
C. SHAPES
point()
line()
ellipse()
rect()
triangle()
D. COLOR
color()
E. CONSOLE
console.log()
print()
5. How to upload your project?
A. Documentation:
https://wordpress.com/ (recommended)
Signup for the wordpress and upload your project one by one every week. (recommended)
Wordpress is free and easy to use.
B. How to share your code easily.
You can share your code via Gist. โhttps://gist.github.com/
6. In-class Activity
A. Draw a self-portrait of yourself.
7. Assignment
A. Find a project that works with the computer programming.
- Recommended: Improve OR Add additional objects to your in-class self-portrait.
(eg. adding favorite animal, favorite food and etc)
B. Submit your in-class activity and the assignment.
Here : https://goo.gl/forms/XHD9edphZxcGF0lb2
Last updated