Creative Coding
#CodePenOrebro
Johan Karlsson
- Nerd
- Math, physics, tech
- Computers
Turbo Pascal
program Hello; begin writeln ('Hello, world.'); readln end.
🌈
🌊
Ï€
Msc Computer Engineering
Text boxes over data.
Â
W00T!?
- Fun
- Creativity
- Patterns
- Animations
- Math
- Direct feedback
- That's why we are here tonight!
CodePen, what is it?
Takeaways
- Trust in JS
- From: wannabe language
- To: something powerful, odd but beautiful Â
T-shirtsÂ
andÂ
3 months CodePen Pro
Canvas
- x, y
- Lines, rectangles, circles
- Animation by changing a variable and redraw
- Native support in browsers
- p5.js (to me): does the plumbing and provides nice helper libs like Perlin Noise and vectors
Live coding!
Brownian Motion
- Robert Brown
- Albert Einstein
- Jean Perrin
Takeaways, Brownian Motion
- Vague idea
- Just run with it
- You never know what you gonna get
- Ok to throw away some creations
CSS
#CodeVember
- Create something (small) each day in November
- I explored Sass
- "Strange" for me, backwards
- Durations and end positions instead of many absolute intermediate positions/values
Live coding!
button,
#button,
.button,
input[type="submit"],
input[type="button"]
{
animation: rotate 4s linear infinite;
}
@keyframes rotate {
to { transform: rotate(360deg);}
}
Takeaways, CSS, SCSS
- Powerful programming language
- You notice new things when you look at a problem from another angle (Duh!)Â
A Fractal
Â
- Math...
- Self-similar
- Benoît Mandelbrot
beautiful, damn hard, increasingly useful. That's fractals.
- Benoît Mandelbrot
​​
Takeaways, Fractals
- They are awesome, just kidding - I already knew
Resources
- Coding Math, with Keith Peters
Physics, Math, Very well laid out and presented
https://www.youtube.com/user/codingmath - The Coding Train, with Daniel Shiffman
Fun, Wierd, Awesome
https://www.youtube.com/user/shiffman - Curated list of Creative Coding resources, by Terkel
https://github.com/terkelg/awesome-creative-coding
#CodePenOrebro
By Johan Karlsson
#CodePenOrebro
- 459