IAT 167 Lecture Notes - Lecture 13: Graphical User Interface, User Interface, Sliders

135 views5 pages

Document Summary

User interface that allows user to interact with programs with graphical icons and visual indicators (widgets) Program waits for events to occur and responds. Flow is determined by events (user actions, sensor inputs, timer ticks: event firing: objects/ interactions generate events, event detection: listens check for events, event handling: functions respond to events (e. g. callbacks) Gui and controller library used in application and applet mode. Bundled with processing with default (version 2. 2. 5: install globally: import library controlp5, add locally: sketch --> add file --> library --> add controlp4. jar to "code" folder. Create multiple controllers for object, color, array, & squares import controlp5. *; //import library color[] colors = new color[4]; //array of colors that can be changed by. Controlp5 = new controlp5 (this); //constructor signature: controlp5 (papplet p) Controlp5. addslider (slider1, 0, 255, 128, 10, 10, 10, 100); controlp5. addslider (slider2, 0, 255, 128, 70, 10, 100, 10); //add a toggle that have two state: true or false.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents