Presentation is loading. Please wait.

Presentation is loading. Please wait.

Tips and Tricks Beech Hall Teaching Course. A Function A Function is where you can define your own code to do a particular thing – a function Pretty much.

Similar presentations


Presentation on theme: "Tips and Tricks Beech Hall Teaching Course. A Function A Function is where you can define your own code to do a particular thing – a function Pretty much."— Presentation transcript:

1 Tips and Tricks Beech Hall Teaching Course

2 A Function A Function is where you can define your own code to do a particular thing – a function Pretty much everything is a function in Processing Functions keep code neater You can steal code and put it in a function

3 Curly Brackets The Curly Bracket is your friend It can be tricky and they always come in pairs They hate being alone Best to keep your code neat and tidy

4 Curly Brackets Use the tab to keep things indented if(something is true) { // Use a tab for indents fill(0,255,0); drawBox(1); } Use a Tab

5 Debugging If you get lost – then use a debug statement to see whats going on The println(“”); command can be used to print the value of any variable – very handy Prints out the value in the area under your code when its running – println(“This variable is: “ + variableName);


Download ppt "Tips and Tricks Beech Hall Teaching Course. A Function A Function is where you can define your own code to do a particular thing – a function Pretty much."

Similar presentations


Ads by Google