ICL
  • Intro to Computational Language
  • Academic Policy
  • Week 01
  • Week 02
  • Week 03
  • Week 04
  • Week 05
  • Week 06
  • Week 07
  • Week 08
  • Week 09
  • Week 10
  • Week 11
  • Week 12
  • Week 13
  • Week 14
  • Week 15
  • Portfolio
Powered by GitBook
On this page
  • Discussion
  • 1. What would be a computer programming project?
  • 2. Server-side vs. client-side
  • 3. CDN and LOCAL
  • A. CDN : Content Delivery Network
  • B. Local : Open up a new folder and Download file
  • C. Live Coding
  • 4. LET'S START WITH P5.JS
  • A. function setup() and function draw()
  • B. Canvas in the web browser
  • C. SHAPES
  • D. COLOR
  • E. CONSOLE
  • 5. How to upload your project?
  • 6. In-class Activity
  • 7. Assignment

Week 02

Introduction and Drawing

PreviousWeek 01NextWeek 03

Last updated 6 years ago

Discussion

Map of Computer Languages

Popular Languages these days

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

<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.6.1/p5.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.6.1/addons/p5.dom.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.6.1/addons/p5.sound.js"></script>

B. Local : Open up a new folder and Download file

C. Live Coding

4. LET'S START WITH P5.JS

A. function setup() and function draw()

function setup()

function setup() is static, not changing over time.

function draw()

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()

point(30, 20);

line()

line(30, 20, 85, 75);
stroke(126,0,0);

ellipse()

fill(80);
ellipse(56, 46, 55, 55);

rect()

stroke(0,0,255);
fill(0,0,255);
rect(30, 20, 55, 55);

triangle()

fill(10,200,35,0.6);
triangle(30, 75, 58, 20, 86, 75);

D. COLOR

color()

var inside = color(204, 102, 0);

fill(inside);
triangle(30, 75, 58, 20, 86, 75);

E. CONSOLE

console.log()

console.log("hello");

print()

print("Hello, World");

5. How to upload your project?

A. Documentation:

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.

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.

What is CDN?

What is CDN?

p5.js :

Go to (Recommended)

Go to

(recommended)

You can share your code via Gist. ​

Here :

https://www.cloudflare.com/learning/cdn/what-is-a-cdn/
https://cdnjs.com/about
https://cdnjs.com/libraries/p5.js
https://alpha.editor.p5js.org/
https://jsfiddle.net/kdoodoo/fcsv9kw2/
https://wordpress.com/
https://gist.github.com/
https://goo.gl/forms/XHD9edphZxcGF0lb2
http://www.pfnp.me/wp-content/uploads/2012/11/programming-language-history2.png
https://www.computerscience.org/resources/computer-programming-languages/
https://spectrum.ieee.org/static/interactive-the-top-programming-languages-2018
Wind Map
230KB
Start.zip
archive
Start.zip