• Please review our updated Terms and Rules here

Looking for AppleSoft Code Sample - HPLOT using sin

billdeg

Technician
Joined
Nov 18, 2003
Messages
3,885
Location
Landenberg, PA USA
Is it possible to in hi-res mode to draw a sin wave?...and if so Does anyone have a code snippet example?

If HPLOT is used only to draw straight lines, how does one draw curves in hi-res mode using an Apple II AppleSoft BASIC?


The only way I can see to do it is draw one dot at a time, and loop through the beginning to end points using the sin function to plot the points.

Bill
 
Last edited:
just something not covered in the code examples...
If you want to beef up the lines, you can use the HPLOT TO (X,Y) command to plot from the last point plotted (or 0,0) to the specified coordinates.
 
NOTE: I finished this project. In the end you just have to bang at these things until you get them done. If anyone is going to VCF East this week, I will have a biorhythm program running on my Apple II.

(This post was made in part to cover the spam post that preceded it.)
 
Back
Top