Julia set: Difference between revisions

Content added Content deleted
(→‎{{header|Liberty BASIC}}: Unnecessary variable removed.)
Line 582: Line 582:
iteration = iteration + 1
iteration = iteration + 1
wend
wend
if iteration <> maxIteration then c = iteration else c = 0
if iteration <> maxIteration then c = int(iteration * 255 / maxIteration + .5) else c = 0
print #julset.gbox, "color "; c; " "; c; " "; c
cl = int(c * 255 / maxIteration + .5)
print #julset.gbox, "color "; cl; " "; cl; " "; cl
print #julset.gbox, "set "; xp; " "; yp
print #julset.gbox, "set "; xp; " "; yp
next yp
next yp