COMP 1405 Study Guide - Ellipse, Hungarian Forint, Airborne And Antigas Defence League

205 views9 pages
14 Jul 2014
Course
Professor

Document Summary

Algorithm = how to do something (not necessarily in programming language, could be in english), expressed as a detailed list of instructions for accomplishin a task. Result is either the transformation of input or physical changes. Event-driven programming software responds to outside events (mouse click) Names given to data with a specific meaning. Some are already given in processing: height (of screen), width, mousex, mousey. Value can change as the program executes but the meaning stays the same (ex: score in a hockey game, bank balance) Processing has a draw loop ( setup function called only once at the beginning, draw function called after, loops at 30 fps) Course notes void setup() size(400,400); void draw() ellipse(20,40,60,80); Execute or do not execute some code based on current state. Eg. automatic lawn sprinklers do not turn on in the rain. Refer to a process by name, eg. ellipse()