


- P5.js- animation
- Programming language – javascript
- Setup – beginning, setting up the canvas
- Draw – what happens to the animation
- Functions – smaller programmes, does something specific, and does it very well / paint brushes
- Library – takes the tiny bits of code which are already defined
- Library: (Help → Reference to the site)
- Why is function written only for some functions and not for others?
- ; – full stop for the programme
- Variable – a container for data – paint containers
- // – comments – these are not interpreted by the compiler. Like notes to myself
- Start with writing the things the programme MUST DO. This helps form the functions of the code.
Bit Depth:
- 1 Bit system = 2 states (1, 0)
- 8 Bits = 256 states (1… 256)
- To go up each bit, you double it from what the previous number of states was
- 16 BIts = 65536 states (1… 66536)
- Let – local scoped variable (which only belongs inside of a function
- Random – assign random values between 0.0 to 1.0
- Random (x, y) to assign values between x and y
- 3JS – 3D
- Reference: https://p5js.org/reference/
Resources to learn more: