Ken,
This is the section, converted from the Applesoft Artillery game, that draws a simple "hill".
Sorry about the screen size... But that's Apple of the 80's... lol
SCREEN _NEWIMAGE(280, 200, 32)
DIM YY(280)
P1 = 99
PI = 3.141592654 / 180
P = RND(1) * 20 + 139
FOR I = 1 TO 112
LINE (I, P)-(I, 159), _RGB32(0, 255, 0)
YY(I) = P
NEXT
HG = RND(1) * 50 + 25
FOR I = 113 TO 152
HX = SIN(((I - 112) * 4.5 + 180) * PI) * HG
YY(I) = HX + P
LINE (I, HX + P)-(I, 159), _RGB32(0, 255, 0)
NEXT
FOR I = 153 TO 279
LINE (I, P)-(I, 159), _RGB32(0, 255, 0)
YY(I) = P
NEXT
J