Sunday, September 7, 2008

Chunks 81 to 85

CHUNK 81
TITLE Object orientation and images
DESCRIPTION In this part of the book show how you can develop a class based Processing program that manipulates images. This would be valuable revision on OO concepts.
OUTCOME
  • Be able to develop an OO-based program of no more than 120 lines which manipulates images.
REFERENCE Greenberg 468--479
HINT It would do no harm to make the program the same level of complexity as that in the Greenberg extract
PROGRAM A similar program to that found in the text,

CHUNK 82
TITLE Mouse events
DESCRIPTION This is the first part of the book that looks at mouse events. Happily Processing handles such events easily
OUTCOMES
  • Be able to understand how Processing is able to detect and act on mouse events.
  • Be able to develop a program up to 120 lines which relies on mouse events bein caught.
REFERENCE Greenberg 564--570
HINT Don't worry about showing how complex the mouse event code in Java is (Greenberg 564--565) just go straight into a description of the Processing code. Don't use any motion code unless its very simple as we have not covered this in the book
PROGRAM Develop a program similar to the one that you describe in this part of the book.

CHUNK 83
TITLE Buttons
DESCRIPTION Buttons are useful elements to have. Unfortunately the standard button code used in Java cannnot be used in Processing. You have to draw them
OUTCOME
  • Be able to understand how Processing implements buttons
  • Be able to develop a Processing program of no more than 120 lines that includes two buttons.
REFERENCE Greenberg 579--582
HINT Take the teaching very gently and dont tear your hair out when you realise that you can't use Swing or AWT widgets.
PROGRAM Develop a similar program to the one you describe in the text. Make it class based.

CHUNK 84
TITLE Advanced buttons 1
DESCRIPTION You will need to describe a similar program to the one detailed in the Greenberg extract below. Working with sophisticated buttons is really painstaking in Processing Im afraid.
OUTCOME
  • Be able to develop a sophisticated button-based Processing program of no more than 200 lines.
REFERENCE Greenberg 582--586
HINT Take it very gently: build up the program gradually as the code while not being intellectually difficult is somewhat complicated
PROGRAM A program similar in complexity to the one that you describe in the text.

CHUNK 85
TITLE Advanced buttons 2
DESCRIPTION You will need to describe a similar program to the one detailed in the Greenberg extract below. Working with sophisticated buttons is really painstaking in Processing Im afraid. This is a similar version to the previous chunk of the book. You may need to liase a bit with the author of chunk 84. Like 84 this is jst the description of a sophisticated program.
OUTCOME
  • Be able to develop a sophisticated button based Processing program of no more than 200 lines
REFERENCE Greenberg 582--586
HINT Take it very gently: build up the program gradually as the code while not being intellectually difficult is somewhat complicated
PROGRAM A program similar in complexity to the one that you describe in the text.

1 comment:

martin_p said...

Buttons need not be such an issue if you have access to a library such as controlP5, that does quite a lot for you