Browser Space: Introduction to p5.js
#teachParticipants of the course will be introduced to a foundation of computational thinking alongside the coding environment of p5.js (Processing for javaScript) and the basics of programming for the browser. Three sections of this course will examine different groups of programming knowledge, helping participants to meaningfully develop basic programming skills through a process of experimentation and iteration. The course will show the various parts of developing a rudimentary agent-system that responds to flow fields in 2D and 3D, and discuss the various situations in which these computational skills overlap with architectural and design work.
WK16
Introduction Seminar
Video 0 : Computational Thinking and Beginning in the Browser
>computational thinking as conceiving procedurally derived outcomes, learning
the logic and linguistics of computation. Turing code breaking as a computational
method around computational encryption.
>proto-computational examples: Constructivism, Sol Lewitt, Peter Eisenmann,
John Soane’s specifications
>computational thinking as understanding the differences among various techniques: object-orientation, generative design, brute force (Mario Carpo)
versus algorithmically refined solutions
>use of computational thinking in architectural form, social form,
spatial analysis
>the browser versus other deployment environments
[assignment] Submit a list of 5 activities that take place in a web browser and
the physical locations that they replace.
Video 1 : What is p5.js?
>p5.js as a javaScript library extending the intentions of the
Processing Foundation (making coding operations easier and iterable
for “creative coding”.
>javaScript with npm as a foundation for variety of libraries and operations
(three.js, d3.js, etc.), and p5.js as a simplified interface for creating interactive
and animated sketches within the browser
>p5.js IDE (sketch.js, html file, server) and simplified web editor,
the IDE we will use throughout the course.
[assignment] three examples of javascript in web design that
demonstrates potential architectural utility
Video 2 : Basics of p5.js - online editor, variables, functions, setup() and draw()
>p5.js variable declarations and main variable types
(integers, floats, arrays, etc)
>p5.js methods for setup() and draw(), basics of createCanvas() (and how it
relates to html) background() and use geometry of line, ellipse, point and
beginShape() / endShape()
[assignment] create a novel sketch using 10 different unique variables
WK19
Video Section 1 Due
Review Seminar
Reading 1 Deployed
WK20
Reading 1 Due
Discussion Seminar
Video 3: Conditional Statements andLoops
>if / case:switch statements
>for / while loops
Video 4 : Brownian Motion Simple
>constructing brownian motion through visual overlay means and through
interaction with arrays, i.e. visual composition versus memorable information
(storage within the sketch)
[assignment] augment the sketch so that three aspects of the sketch are altered
with every movement of the agent, the position of the agent is written in text,
save and post an image of the canvas after the sketch has been altered
Video 5 : Brownian Motion Object-Oriented
>production of the same sketch using class objects instead of non-object-
oriented means.
>create class of brownian motion agents, explain constructor() and object
methods
>provide class with different information to differentiate among a set of bm-
objects
[assignment] add two additional behaviors / functions of the agent which are
visualized in the canvas, save an image every 10 frames and write a function
which stops the loop() after 400 frames
WK23
Video Section 2 Due
Review Seminar
Reading 2 Deployed
WK24
Reading 2 Due
Discussion Seminar
Video 6 : Flow Field Agents 2D
>transition to 3D space with WEBGL, explanation of WEBGL basics
>setting up camera objects and rotation interaction
[assignment] test out three camera setups, one which allows the user to reorient
the space in the canvas, one which links the rotation to mouse positions, and one
which incrementally rotates each frame between 0 and 180
Video 7 : Flow Field Agents 3D
>explanation of DLA process, some prelim examples odf architectural use
>introducing proximity method and division between mobile and frozen elements
[assignment] make a variation of the sketch that switches from Brownian Motion
(Random Walkers) into a different method of determining the movement of agents
Final Assignment
[assignment] develop a p5.js sketch in which agents are used to generate a 2D or
3D composition
WK27
Video Section 3 Due
Review Seminar
Final Assignment Deployed
WK28
Final Assigment Seminar
Consultations
WK 34
Final Assignment Due
All Late Assignments Due
Total Review Seminar
Evaluations
Introduction Seminar
Video 0 : Computational Thinking and Beginning in the Browser
>computational thinking as conceiving procedurally derived outcomes, learning
the logic and linguistics of computation. Turing code breaking as a computational
method around computational encryption.
>proto-computational examples: Constructivism, Sol Lewitt, Peter Eisenmann,
John Soane’s specifications
>computational thinking as understanding the differences among various techniques: object-orientation, generative design, brute force (Mario Carpo)
versus algorithmically refined solutions
>use of computational thinking in architectural form, social form,
spatial analysis
>the browser versus other deployment environments
[assignment] Submit a list of 5 activities that take place in a web browser and
the physical locations that they replace.
Video 1 : What is p5.js?
>p5.js as a javaScript library extending the intentions of the
Processing Foundation (making coding operations easier and iterable
for “creative coding”.
>javaScript with npm as a foundation for variety of libraries and operations
(three.js, d3.js, etc.), and p5.js as a simplified interface for creating interactive
and animated sketches within the browser
>p5.js IDE (sketch.js, html file, server) and simplified web editor,
the IDE we will use throughout the course.
[assignment] three examples of javascript in web design that
demonstrates potential architectural utility
Video 2 : Basics of p5.js - online editor, variables, functions, setup() and draw()
>p5.js variable declarations and main variable types
(integers, floats, arrays, etc)
>p5.js methods for setup() and draw(), basics of createCanvas() (and how it
relates to html) background() and use geometry of line, ellipse, point and
beginShape() / endShape()
[assignment] create a novel sketch using 10 different unique variables
WK19
Video Section 1 Due
Review Seminar
Reading 1 Deployed
WK20
Reading 1 Due
Discussion Seminar
Video 3: Conditional Statements andLoops
>if / case:switch statements
>for / while loops
Video 4 : Brownian Motion Simple
>constructing brownian motion through visual overlay means and through
interaction with arrays, i.e. visual composition versus memorable information
(storage within the sketch)
[assignment] augment the sketch so that three aspects of the sketch are altered
with every movement of the agent, the position of the agent is written in text,
save and post an image of the canvas after the sketch has been altered
Video 5 : Brownian Motion Object-Oriented
>production of the same sketch using class objects instead of non-object-
oriented means.
>create class of brownian motion agents, explain constructor() and object
methods
>provide class with different information to differentiate among a set of bm-
objects
[assignment] add two additional behaviors / functions of the agent which are
visualized in the canvas, save an image every 10 frames and write a function
which stops the loop() after 400 frames
WK23
Video Section 2 Due
Review Seminar
Reading 2 Deployed
WK24
Reading 2 Due
Discussion Seminar
Video 6 : Flow Field Agents 2D
>transition to 3D space with WEBGL, explanation of WEBGL basics
>setting up camera objects and rotation interaction
[assignment] test out three camera setups, one which allows the user to reorient
the space in the canvas, one which links the rotation to mouse positions, and one
which incrementally rotates each frame between 0 and 180
Video 7 : Flow Field Agents 3D
>explanation of DLA process, some prelim examples odf architectural use
>introducing proximity method and division between mobile and frozen elements
[assignment] make a variation of the sketch that switches from Brownian Motion
(Random Walkers) into a different method of determining the movement of agents
Final Assignment
[assignment] develop a p5.js sketch in which agents are used to generate a 2D or
3D composition
WK27
Video Section 3 Due
Review Seminar
Final Assignment Deployed
WK28
Final Assigment Seminar
Consultations
WK 34
Final Assignment Due
All Late Assignments Due
Total Review Seminar
Evaluations