New: sam below requested more info about "float", so here it goes: variables (these boxes where you can store things) in processing have a "type".
to make sure both points are at the same distance from the top (both have the same y value), we use twice a variable that contains our y value. a variable is like a box where we can store a value and reuse this same value multiple times in our program.Ī horizontal line has a starting and an ending point, and both are at the same distance from the top border of the screen. to achieve this we use "variables" for the first time. Modify the program from episode 6 to make all lines horizontal.
KHAN ACADEMY SMOOTH DRAW TEMPLATE CODE
If you type the code yourself :) Interesting links The source code for all episodes, but you will learn more Where NNN is the episode number you want, then click download. It always makes me happy to see what you create, no matter how simple :) The SuperCollider forum can be found here. If you are stuck with a Processing project, You can post questions and comments below each video. If you find these videos helpful, would you want to Have fun mixing code and your creativity! The newer episodes combine graphics generated with ProcessingĪnd sound produced with the SuperCollider The first episodes talk about a programming language To explain one idea, and builds on top of previous episodes. Most episodes include a very short program that tries This is my attempt to share with you how I learnt coding. That's how I learnt programming and math: byĮxperimenting and building things I could see and hear. Playing with graphics and sound is a great way Programming can be fun and a very creative activity.