4:caf89bc9100a | 5:fa4d448b07d3 |
---|---|
19 X,Y = X^2-Y^2+xc, 2*X*Y+yc | 19 X,Y = X^2-Y^2+xc, 2*X*Y+yc |
20 if X^2+Y^2>4 then p=n break end | 20 if X^2+Y^2>4 then p=n break end |
21 end | 21 end |
22 pic:setpixel(j, i, ("#%02x%02x%02x"):format(p,p,p)); | 22 pic:setpixel(j, i, ("#%02x%02x%02x"):format(p,p,p)); |
23 end | 23 end |
24 end | 24 end |
25 | 25 |
26 pic:render(io.stdout); | 26 pic:render(io.stdout); |