For Vince the analyst:
The egg shape formula comes from this:
Don M. Jacobs, M.D., from Daly City, USA developped a nice egg shape by changing the circle equation x²+y²=1 a little: x² + [1.4^x*1.6y]² = 1. The egg equation is an exponential equation of the type t3.
At LB tsh has nice shape derived from circles, see LB
https://libertybasiccom.proboards.com/thread/1954/easter-eggs-anybodyor
JB (towards middle end)
https://justbasiccom.proboards.com/thread/789/graphics-fun?page=2Pi = _PI genius LOL! Just making it easier to translate JB code to QB64, only one change with Const instead of changing all Pi's to _Pi in code. Genius is pure laziness.
This:
d
= scale
* Sqr(x
* x
+ y
* y
)PSet (xc
+ d
* Cos(a
+ radianAngle
), yc
+ d
* Sin(a
+ radianAngle
))
Is for rotating our egg drawing about xc, yc (the middle point of where we want our egg) so the eggs may be angled by radianAngle and some angle besides radianAngle 0 = East
So imagine a little drawing of an egg pointed east from scale. Imagine taking each point around the center, measuring the angle to the center a = _Atan2(y, x)
d = distance x, y to center of plot with (0,0) as origin x -1 to 1, y -1 to 1
So we rotate and scale our image in a little Rotozoom example one pixel at a time.
What's Polar Coordinates about that?
Anyway, that's why it's not just:
PSet (xc
+ scale
* x
, yc
+ scale
* y
)
In fact in 2nd code I found it better to use a Line with a -Step(sq, sq), , BF
and draw a colored square instead of a pixel.
PS the first post without using the last parameter to angle the eggs was mostly to show Aurel at his forum that the eggs (the coloring bands) had to be symmetric. I wasn't even going to post Easter eggs here but Ken seemed to be getting lonely doing a monolog on Neon Clocks ;-))