Julia set: Difference between revisions

Content added Content deleted
m (Put FutureBasic entry in correct location)
Line 1,836: Line 1,836:


{{FormulaeEntry|page=https://formulae.org/?script=examples/Julia_set}}
{{FormulaeEntry|page=https://formulae.org/?script=examples/Julia_set}}

'''Solution'''

We need first to generate a color palette, this is, a list of colors:

[[File:Fōrmulæ - Julia set 01.png]]

[[File:Fōrmulæ - Julia set 02.png]]

[[File:Fōrmulæ - Julia set 03.png]]

The following function draw the Julia set:

[[File:Fōrmulæ - Julia set 04.png]]

'''Test Case 1. Grayscale palette'''

[[File:Fōrmulæ - Julia set 05.png]]

[[File:Fōrmulæ - Julia set 06.png]]

'''Test case 2. Black & white palette'''

[[File:Fōrmulæ - Julia set 07.png]]

[[File:Fōrmulæ - Julia set 08.png]]


=={{header|FutureBasic}}==
=={{header|FutureBasic}}==