Page 1 of 1

Leminiscate Polygon

Posted: Wed Nov 03, 2021 9:38 am
by richmond62
Just an incarnation of Mark Waddingham's post in the Use-List:
-
SShot 2021-11-03 at 10.35.58.png
-

Code: Select all

on mouseUp
   put 200 into A
   put 1 into PLINE
   repeat with t = -pi to pi step (2*pi / 720)
      put (220 + (A * cos(t) / (1 + sin(t)^2))) into X
      put (220 + (A * sin(t) * cos(t) / (1 + sin(t)^2))) into Y
      put X, Y into line PLINE of fld "fPOINTS"
      add 1 to PLINE
   end repeat
   set the points of grc "WIGGLE" to fld "fPOINTS"
end mouseUp

Re: Leminiscate Polygon

Posted: Thu Nov 04, 2021 1:11 am
by stam
richmond62 wrote:
Wed Nov 03, 2021 9:38 am
Just an incarnation of Mark Waddingham's post in the Use-List:
Very nice, thank you for sharing Richmond!
Throw a 'lock screen' in there and it's near instantaneous