IAT 167 Lecture Notes - Lecture 12: Sliders, User Interface

97 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+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers

Related Documents