Someone posted this in a facebook group:

I first tried to put the points in an array and render with 'draw poly', but it crashed. I'll look into that, probably has to do with the point count.

(Yes, still working on the help ...)

Code:

`' Cannabis curve`

' --------------

set window "Cannabis curve", 640, 480

set redraw off

set color 0, 200, 0

px = 0; py = 0

for a = 0 to PI*2 step 0.01

x = 320 + 100*(sin(a) + 1)*cos(a)*(9*cos(8*a)/10 + 1)*(cos(24*a)/10 + 1)*(cos(200*a)/10 + 9/10)

y = 64 + 100*sin(a)*(sin(a) + 1)*(9*cos(8*a)/10 + 1)*(cos(24*a)/10 + 1)*(cos(200*a)/10 + 9/10)

if a > 0 draw line px, py, x, y

px = x; py = y

next

redraw

while not keydown(KEY_ESCAPE) fwait 60

I first tried to put the points in an array and render with 'draw poly', but it crashed. I'll look into that, probably has to do with the point count.

(Yes, still working on the help ...)