Loading...
Witchcraft & Code Class Outline
1. Technical troubleshooting
Open Paper
Download
& open p5 editor
Open & run first code example
Download & open sketch.js file
moogfest_class_ex_circles
2. Witchcraft & Programming
What do we think of when we think of programming?
Let’s deconstruct what computing is: it’s the power of electricity & circuits
(&
binary logic!).
Who is programming for?
What is programing for?
WTF does magic have to do with it?
Some
“Rules”
of Intuition That Will Help You:
If you’re confused, STAY OPEN, & let it wash over you.
Be curious.
Kindness is quick, shame is slow.
Let your self show up.
3. Example Code
moogfest_class_ex_lines
moogfest_class_ex_obama
Some
“Rules”
That Will Help You:
CHANGE ONE THING AT A TIME.
If it doesn’t make a perceptible difference — change it back.
(Command
+ Z)
Comment out & comment in lines.
(Command
+ /)
Force quit.
(Command
+ Option +Esc)
(Control
+ Alt + Delete)
For Loop:
You’re on a horrible game show.
You have to stay if you have less than 100 dollars.
You have 20 dollars to start.
The only way to make 80 more dollars is by braiding hair.
Every time you braid hair, you get 2 dollars.
You braid 40 people’s hair, then GTFO.
for
(
i
= 20
;
i
< 100
;
i+=2
) {
braid hair
}
/
(divide)
*multiply
Please turn on JavaScript to use Paper in all of its awesomeness. ^_^
1. Technical troubleshooting
2. Witchcraft & Programming
3. Example Code