[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference rusure::math

Title:Mathematics at DEC
Moderator:RUSURE::EDP
Created:Mon Feb 03 1986
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:2083
Total number of notes:14613

778.0. "I've got a program for pretty Regis pictures" by VIDEO::OSMAN (type video::user$7:[osman]eric.six) Wed Oct 28 1987 12:43

I've got a program that draws real interesting REGIS pictures on your
terminal.  I'd be interested in hearing how other people like it.

To copy it to your system, type this:

	$ copy video::user$7:[osman.test]flower.exe,.txt *

To try it, type

	$ @flower.txt

To see how the examples work, type

	$ type flower.txt

/Eric
T.RTitleUserPersonal
Name
DateLines
778.1how to start designing your own picturesVIDEO::OSMANtype video::user$7:[osman]eric.sixWed Oct 28 1987 18:148
    Beyond the examples, you can design your own pictures.  To get
    started, type this:
    
    $ run flower
    
    It will print a help message.
    
    /Eric
778.2CLT::GILBERTBuilderThu Oct 29 1987 14:1214
    I'm having some trouble getting consistent results.  A minor change
    to either the "start", "finish", or "n_points" seems to have a major
    unexpected effect on the drawing.  For example,

	$ flower 500*t*log(tan(t*t)),0,400,1000

    is nice, but an increase in the number of points plotted

	$ flower 500*t*log(tan(t*t)),0,400,10000

    also makes the drawing smaller.  A change to the starting value doesn't
    seem to include the 'end' of the earlier drawing:

	$ flower 500*t*log(tan(t*t)),200,400,1000
778.3how scaling worksVIDEO::OSMANtype video::user$7:[osman]eric.sixThu Oct 29 1987 20:4122
    Perhaps an explanation of how the program does its scaling will
    make it more clear.
    
    The program makes a silent pass, evaluating the function at each
    point to be plotted.  The results are min/maxed in order to determine
    scaling.
    
    However, the actual drawing is done by telling Regis to draw a smooth
    spline curve between the points.  Hence Regis might draw the curve
    outside the screen boundary!
    
    However, when you increase the number of points, there are more
    now available for the program to sample for its scaling computation.
    Hence if less points were causing the picture to leave the edge
    of the tube, then more points will definitely cause the picture
    to be smaller.  How much smaller depends on how wild the curve is.
    
    What I'd really like, is if my scaling could be according to what's
    really going to be drawn, so that nothing gets cut off.  But that
    seems very difficult.
    
    /Eric