Programming for Artists
Example Sketch Applications

Instructor/Author: Richard H.


View the example applications and read the source code. Get ideas. Do your ideas.

Unit 02 - Using Color and Drawing Basic Shapes
Example Sketch Applications

Sketch Application Name Description Preview
background_00010 Set the canvas size. Set the background to a color.
usingcolor_00010 Using color.
points_00010 Draw colored points. Points are very small.
drawlines_00010 Draw colored lines. Lines can have thickness (called strokeWeight).
drawrectangles_00010 Draw colored rectangles with fills.
drawrectangles_00020 Draw colored rectangles with outlines and fills.
drawrectangles_00030 Draw colored rectangles with outlines and no fills.
drawellipses_00010 Draw colored ellipses with fills.
drawellipses_00020 Draw colored ellipses with outlines and fills.
drawellipses_00030 Draw colored ellipses with outlines and no fills.
drawtriangles_00010 Draw colored triangles with fills.
drawtriangles_00020 Draw colored triangles with outlines and fills.
drawtriangles_00030 Draw colored triangles with outlines and no fills.
drawarcs_00010 Draw colored arcs with fills.
drawarcs_00020 Draw colored arcs with outlines and fills.
drawarcs_00030 Draw colored arcs with outlines and no fills.

Unit 03 - Control Structures and Random Numbers
Example Sketch Applications

Sketch Application Name Description Preview
if_statement_0010 Illustrate the Java "if" statements.
for_loop_0001 Illustrate the use of the Java "for" loop. Draw ten rectangles to the canvas (screen). using the default colors.
for_loop_0002 Illustrate the use of the Java "for" loop. Draw three rectangles to the canvas (screen). using the default colors.
for_loop_0003 Illustrate the use of the Java "for" loop. Draw four rectangles to the canvas (screen). using the default colors.
for_loop_0004 Illustrate the use of the Java "for" loop. Draw four rectangles to the canvas (screen). using the default colors.
for_loop_0005 Illustrate the use of the Java "for" loop. Draw four rectangles to the canvas (screen). using the default colors.
random_horizontal_lines_0001 Draws 100 horizontal lines placed randomly.
random_vertical_lines_0001 Draws 100 vertical lines placed randomly.
random_horizontal_lines_0002 Draws 100 horizontal lines placed randomly.
random_vertical_lines_0002 Draws 100 vertical lines placed randomly.
random_horizontal_lines_0003 Draws 100 horizontal lines placed randomly.
random_vertical_lines_0003 Draws 100 vertical lines placed randomly.
random_horizontal_lines_0004 Draws 100 horizontal lines placed randomly.
random_vertical_lines_0004 Draws 100 vertical lines placed randomly.
random_horizontal_lines_0005 Draws 100 horizontal lines placed randomly.
random_vertical_lines_0005 Draws 100 vertical lines placed randomly.

Unit 04 - A Tour with Rectangles and Ellipses
Example Sketch Applications

Sketch Application Name Description Preview
rectangles_20060101_0 Drawing multiple rectangles using random location and color.
rectangles_20060101 Drawing multiple rectangles using random location and color.
rectangles_20060101b Drawing multiple rectangles and ellipses using random location and color.
rectangles_20060101c Drawing multiple rectangles and ellipses using random location and color and size.
rectangles_20060101d Drawing multiple rectangles and ellipses using random color and size.
rectangles_20060101e Drawing multiple rectangles and ellipses using random color and size.
rectangles_20060101f Drawing multiple rectangles and ellipses using random color and size.
rectangles_20060101g Drawing multiple rectangles and ellipses using random color and size.
rectangles_v010_20051227 Illustrate drawing properties.
rectangles_v011_20051227 Illustrate drawing properties.
rectangles_v020_20051227 Illustrate drawing properties.
rectangles_v030_20051227 Illustrate drawing properties.
rectangles_v040_20051227 Illustrate drawing properties.
rectangles_v050_20051227 Illustrate drawing properties.
rectangles_v060_20051227 Illustrate drawing properties.
rectangles_v070_20051227 Illustrate drawing properties.
rectangles_v080_20051227 Illustrate drawing properties.
rectangles_v090_20051227 Illustrate drawing properties.
rectangles_v100_20051227 Illustrate drawing properties.
rectangles_v110_20051227 Illustrate drawing properties.
rectangles_v120_20051227 Illustrate drawing properties.
rectangles_v130_20051227 Illustrate drawing properties.
rectangles_v140_20051227 Illustrate drawing properties.

Unit 05 - Images
Example Sketch Applications

Sketch Application Name Description Preview
image_00010 Display a photo image.
image_00020 Display a photo image.
image_00100 Display a photo image and apply a filter.
image_00110 Display a photo image and apply a filter.
image_00120 Display a photo image and apply multiple filters.
image_00130 Display a photo image and apply multiple filters.
image_00140 Display a photo image and apply multiple filters.
image_00150 Display a photo image and apply multiple filters.
image_00160 Display a photo image and apply multiple filters.
image_00170 Display a photo image and apply multiple filters.
image_00180 Display a photo image and apply multiple filters.

Unit 06 - Text, Keyboard and Mouse
Example Sketch Applications

Sketch Application Name Description Preview
text_0001 Draw text.
text_0002 Draw text and add animation.
mouse_location_0040 Using the mouse as an input device. Responds to mouse click.
mouse_location_0050 Using the mouse to control the background color. Responds to mouse click.

Unit 07 - Sprites and Transformation
Example Sketch Applications

Sketch Application Name Description Preview
arc_art_v0001_20051229 Draw artistic arcs.
arc_art_v0002_20051229 Draw artistic arcs.
arc_art_v0003_20051229 Draw artistic arcs.
arc_art_sprite_v0004_20060318 Draw artistic arcs.

Unit 08 - Games
Example Sketch Applications

Sketch Application Name Description Preview
gm_si_v0001_20060323 Create a game using sprites and keep score.
sprite_in_list_00010 Sprite Management with Java Lists and Iterators.
random_color_00010 Sprite Management with Java Lists and Iterators.

Unit 09 - Using Sine
Example Sketch Applications

Sketch Application Name Description Preview
sine_demo_20050831 Draws the bones (amplitude) of a sine wave all at once.
sine_demo_v0005_20050915 Draws the bones of a sine wave over time.
sine_demo_v0006_circle_path_20050915 An ellipse shaped sprite traveling in a circle. The circle path is displayed.
sine_demo_v0007_circle_path_20050915 An ellipse shaped sprite traveling in a growing circle. The circle path is displayed.

Unit 010 - Video
Example Sketch Applications

Sketch Application Name Description Preview
single_movie_street_v2_text_20050912 Displays video with title and time. (Does not work running as an applet on the web.)






Modified: 05/04/2005 RH
Created: 03/09/2005 RH