RunJSONIFS2D: RunJSONIFS2D

Description Usage Arguments Value Examples

View source: R/Plot.R

Description

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

Usage

1
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

1
2
3
4
library(IFSPlot)

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

IFSPlot documentation built on May 15, 2018, 5:04 p.m.