User Tools

Site Tools


cs276:wdcraft.tutorial04

Tutorial Assignment #4

Tutorial Assignment #4, Part I, Item 2.

Sketch produces an image that can be manipulated dynamically, allowing the user to select a rectangular region of the image then CLICK on that selected region to have it copied across the horizontal axis of the image to the mirror location there (i.e. a horizontal mirroring operation). User can click the gray space at left-hand side of image to re-establish the original image.

Click the example image below to go to the applet version and see the underlying Processing code:

Tutorial Assignment #4, Part I, Item 3.

Sketch produces an image that can be manipulated dynamically, allowing the user to select a rectangular region of the image then CLICK on that selected region to have it copied across the vertical axis of the image to the mirror location there (i.e. a vertical mirroring operation). User can click the gray space at left-hand side of image to re-establish the original image.

Click the example image below to go to the applet version and see the underlying Processing code:

Tutorial Assignment #4, Part I, A Pixel Inspector.

Sketch loads an image that can be “inspected” dynamically, showing information about the image and the pixel location under the cross-hairs cursor: (1) file name; (2) pixel location (x, y) in pixels; (3) the corresponding index for the image's pixel array; (4) the RGB components of the color at the chosen pixel; and (5) an enlarged display of the pixel (to better illustrate its color).

Click the example image window below to go to the applet version and see the underlying Processing code:

cs276/wdcraft.tutorial04.txt · Last modified: 2008/10/01 21:39 by wdcraft