EZ Math Movie, Tutorials, Designs, Random Points and Lines


Draw a point and a line segment; repeat.

Here is a simple program that sets up the graph and then loops the drawing repeatedly till you click the stop button - a classic way to work with EZ Math Movie.

Study the source code. The graph is set up in the before loop code. Then two things happen repeatedly in the loop code. First, a random x- and y-coordinate are generated, and a point is plotted at those coordinates. Second, a pair of random (x, y) endpoints are generated, and a line segment is drawn between them. As the program runs, the points and line segments are scattered about the graph.

You will have to press the stop button to halt this program.

Running the example program

This program has one of the classic EZ Math Movie forms. The form works this way:

In our example program each drawing cycle consists of:

Click the 'Stop' button to quit the animation.


The example program

0ptions
Angle measurement: Degrees Radians

Go on input

Bounds:
Sorry, apparently this browser does not support HTML 5 canvas tag graphics.
Printer

Edit: Runtime          View: Starter Suggestion

To runtime:

Storage:

Editor width: Normal Wide


		

	


		

	


		

	

And....

Next tutorial: Patterned points and line segments

 

Here are some links to related articles at EZ Programing Demos:

Random points

Random lines


All contents of EZ Math Movie are copyrighted: Copyright 2011, Edward A. Zobel. All rights reserved.



Warning: include() [function.include]: URL file-access is disabled in the server configuration in /home/content/E/d/w/EdwardZobelFTP/html/ezmathmovie/tutorials/designs/randomPointsAndLines/randomPointsAndLines.php on line 145

Warning: include(http://ezmathmovie.com/ads/ad1View.php) [function.include]: failed to open stream: no suitable wrapper could be found in /home/content/E/d/w/EdwardZobelFTP/html/ezmathmovie/tutorials/designs/randomPointsAndLines/randomPointsAndLines.php on line 145

Warning: include() [function.include]: Failed opening 'http://ezmathmovie.com/ads/ad1View.php' for inclusion (include_path='.:/usr/local/php5/lib/php') in /home/content/E/d/w/EdwardZobelFTP/html/ezmathmovie/tutorials/designs/randomPointsAndLines/randomPointsAndLines.php on line 145

Other sites you may find interesting

Zona Land Education Like Math and Physics?

Zona Land Education offers explanations, diagrams, and animations on these topics.
And it is all presented in a clear and casual manner.

Here is the link: zonalandeducation.com




EZ Programing Demos Want to learn about programing computers?

EZ Programing Demos has an animated, slow motion, interactive programing language demonstrator.
The site presents basic ideas at a beginner's level.

Here is the link: ezprogramingdemos.com



Custom Search

Name:
Domain:

Name
0


Name:
Name
0