Make Your Own Algorithmic Art: A Gentle Introduction To Creative Coding With P5js
by Tariq Rashid /
2018 / English / PDF
101.8 MB Download
Table of contents :
Contents......Page 2
Intro......Page 4
Prologue - Algorithmic Art......Page 8
1 First Building Blocks......Page 14
Before We Get Started......Page 16
First Things First - A Canvas......Page 21
Creating A Canvas With Code......Page 30
The setup() Section......Page 32
The draw() Section......Page 33
Our First Shape - A Circle......Page 36
Fill Colour......Page 45
Outline Stroke......Page 47
Saving And Sharing Our Sketches......Page 51
Worked Example: Ripples......Page 58
More Shapes - Rectangles, Lines......Page 66
2 Algorithmic Thinking......Page 76
Randomness......Page 78
Worked Example: Paint Drops......Page 88
Repetition......Page 99
Repetition - Using The Counter......Page 110
A Loop Within a Loop......Page 119
Worked Example: Splatter!......Page 134
3 More Building Blocks......Page 154
Mixing Colours......Page 156
Translucent Shades......Page 171
Worked Example: Metropolis......Page 178
Functions - Reusable Code......Page 202
Functions Made of Functions......Page 218
The Sinuous Sine Wave......Page 230
Natural Decay......Page 251
Worked Example: Spirograph......Page 267
4 More Algorithmic Fun......Page 300
An Apparently Unhelpful Definition......Page 302
The Mysterious Holocrux......Page 303
Random Recursion......Page 319
Worked Example: Tree Forms......Page 326
Creative Chaos......Page 351
Making A Map of Chaos......Page 375
Worked Example: Whirling Dervish......Page 395
5 Even more Building Blocks......Page 408
A More Human Colour Model......Page 410
Worked Example: Contemplation in Colour......Page 425
Not So Random Randomness......Page 436
Worked Example: Alien Terrain......Page 450
6 Even more Algorithmic Adventures......Page 470
Turtle Code......Page 472
Growing Turtle Code......Page 488
Worked Example: Fractured Reality......Page 503
Epilogue - Algorithms as Art......Page 520
More Loop Examples......Page 522
Just Enough Trigonometry......Page 534
Complex Numbers......Page 544
Gallery......Page 560