Microsoft Word - Document3
ALL CODE MUST BE DONE IN PROCESSING SOFTWARE
FREE SOFTWARE DOWNLOAD ON processing.org
WRITE NOTES EXPLAINING EACH STEP OF CODE
Submit zipped file of your folder (your folder should have the following files) :
1. Button.pde
2. ScrollBar.pde
3. RemoteControl.pde
4. .pde of usage sketch
Please use Button.pde and ScrollBar.pde Attached with the
assignment
Usage file :
Declare an instance of RemoteControl Class & name it as rc .
Inside setup:
a) set size of the canvas
) create a new RemoteControl object by sending positional values and assign
it to rc . ( your choice for where you want to place the rc, how big it
needs to be)
d) call rc's show method.
Inside mousePressed:
a) call rc’s clickedOnMe
Inside draw:
a) if status of rc is true,
i) draw a white rectangle/square to denote a TV and indicate the cu
ent volume
level using rc’s vol
) if status of rc is false,
i) draw a black rectangle/square to denote the TV being off.
Please look at the video attached