IFSPlot (version 1.0)

RunJSONIFS2D: RunJSONIFS2D

Description

This function allows you to plot some fractals using the Iterated Function Systems theory.

Usage

RunJSONIFS2D(JSON, set_palette = 0, filename = "")

Arguments

JSON

A JSON string, URL or file.

set_palette

0 = default palette; 1 = grayscale; 2 = rich.colors.

filename

If given, saves the image as a png file in the current working directory.

Value

A list with a 2D array of pixels and the parameters as a JSON.

Examples

Run this code
# NOT RUN {
library(IFSPlot)

file_ifs = system.file("extdata", "Fern2D.json", package="IFSPlot")
result = RunJSONIFS2D(file_ifs, 1)
# }

Run the code above in your browser using DataLab