Fractale de  Hopalong


Algorithme

Pick a [e.g. -3 to 3]

B = SIN(a)

c = COS(a)

x0 = 0

y0 = 0

x = x0

y = y0

do

skip first 100 iterations

Plot x, y

IF x >= 0 THEN sign = 1

ELSE sign = -1

xx = y - sign * (ABS(B * x - c) ^ .5)

yy = a - x

x = xx

y = yy

loop


[Image]