fractals

command
v0.0.0-...-3c012e0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 22, 2017 License: Apache-2.0 Imports: 7 Imported by: 0

README

#fractals# An excercise from "Go Programming Language" book: p. 62, ex.3.5-3.9

The program itself generates images of few simple equations/fractals (check /algos/algos.go file). Depending on command line it either produces output to a file, or starts a web-server serving PNG files over the HTTP.

Operation

Depending on the command-line parameters (for cmdline operation) or HTTP GET parameters (for WWW server operation) it produces image that has following attributes:

  • width, size
  • scaling: supersamping ratio of the resulting image (1 pixel of the resulting image == average of X point calculated by program, where X == scaling param)
  • algo: algorithm to use for calculating the image (check help for a full list)

Comments/questions

Sergiusz - in the code I have made comments marked with (sur) tag - could you please take a look and comment on them ?

Documentation

Overview

Mandelbrot emits a PNG image of the Mandelbrot fractal.

Directories

Path Synopsis
Package algos groups functions used for calculating fractals
Package algos groups functions used for calculating fractals
Package cmdline gathers together cmdline stuff used by fractals app.
Package cmdline gathers together cmdline stuff used by fractals app.
Package constants contains misc code used by both webserver and fileoutput variants.
Package constants contains misc code used by both webserver and fileoutput variants.
Package img contains all the code related to generating an image
Package img contains all the code related to generating an image
Package web groups all the code directly related to serving mandelbrot fractals through HTTP.
Package web groups all the code directly related to serving mandelbrot fractals through HTTP.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL