Julia: Fractal Image Data Generator
The package aim at generating Julia and Mandelbrot sets with given initial conditions and resolution using an escape time algorithm. A resulting data matrix is represents escape times at each matrix entry.
Julia set data
can be generated with the JuliaImage
function. An example
case,
<- 2000
imageN <- 0.0
centre <- 4.0
L <- -0.8 + 0.156i
C <- JuliaImage(imageN, centre, L, C) image_matrix
A sample visualisation with R’s hcl palette Roma
as set
values on a grid given as a matrix.
par(mar=c(0, 0, 0, 0))
image(image_matrix[550:1450, 200:1800],
col=hcl.colors(2000, palette="Roma"),
axes=FALSE, useRaster=TRUE)
Mandelbrot
set data can be generated with MandelImage
function.
An example to generate the data:
<- 2000;
imageN <- 0.0
centre <- 4.0
L <- MandelImage(imageN, centre, L); image_matrix
A sample visualisation with R’s hcl palette Roma
as set
values on a grid given as a matrix.
par(mar=c(0, 0, 0, 0))
image(image_matrix[350:1600, 1:1250],
col=hcl.colors(2000, palette="Roma"),
axes=FALSE, useRaster=TRUE)
And an other zooming
par(mar=c(0, 0, 0, 0))
image(image_matrix[800:1200, 200:600],
col=hcl.colors(2000, palette="Roma"),
axes=FALSE, useRaster=TRUE)
Author is grateful to Ranjan Maitra for his suggestions on reviving the package.