Skip to content

labermt/OLD-CST238SRS03

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 

Repository files navigation

CST238SRS03

Graphics

Student Name:

Issues:

Notes:

Purpose:

  • Learn to use graphics in a user interface.

Create a application that takes the following as field input:

  • Number of iterations. (find a good default)
  • A fraction between 0.0 and 1.0. (default to 0.5)
  • A color. (use a default of your choice)
  • A gesture to select points.
  • A gesture to clear the drawing.

Display a graphic in a user interface design by using a custom ImageView.

Have the user select a minimum of 3 vertex points in the ImageView by a gesture to start the drawing.

Draw Algorithm:

  • Once the vertex points are selected, pick a point as a starting location.

  • Randomly pick one of the vertices.

  • Move the user selected fraction [0.0, 1.0] towards the randomly selected vertex.

  • Draw a point of the selected color at the new location.

  • Using the new location as the starting location, loop for the user selected interations.

Hints:

About

Graphics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published