- Stupid yahoo e-mail tool. Sends my reply when I hit tab? Huh? Take two: 5 HGR switch to hi-res modeMessage 1 of 3 , Aug 29, 2008View Source
Stupid yahoo e-mail tool. Sends my reply when I hit tab? Huh?
5 HGR switch to hi-res mode
10 D = 0 starting angle in degrees
20 For X = 40 to 240 size on display in pixels
30 D = D + 3 determines how many cycles we see
40 R = D * 0.017453 convert to radians
50 V = SIN (R)
60 V = V * 20 determines Y amplitude of sine in pixels (40)
70 Y = 100 + V 100 is X axis Y coord
80 HPLOT X,Y
90 Next X
Syntax is probably all wrong for Applesoft, but you get the idea. Too lazy to get out my Ace-500 and try this out...
--- On Fri, 8/29/08, Bill Degnan <billdeg@...> wrote:
From: Bill Degnan <billdeg@...>
Subject: [midatlanticretro] Biorhythm - possible to output a tight hi-res sin curve - need code snippet
Date: Friday, August 29, 2008, 11:39 AM
Is it possible on an Apple II using hi-res mode to draw a nice tight sin wave?...and if so Does anyone have a code snippet example? I don't like the blocky low-res output, I would prefer the hi-res approach.
If HPLOT is used only to draw straight lines, how does one draw curves in hi-res mode using an Apple II AppleSoft BASIC?
I will continue to search the typical places. If anyone knows of a magazine with an example, I may have it too. I could write the curve pixel by pixel using a sin function to set the HPLOT variables, is that how it's done?. Otherwise the program is pretty much done, and is Y2K compliant.