Directories ¶
Path | Synopsis |
---|---|
If the function `f` returns a non-finite `float64` value, the SVG file will contain invalid `<polygon>` elements (although many SVG renderers handle this gracefully).
|
If the function `f` returns a non-finite `float64` value, the SVG file will contain invalid `<polygon>` elements (although many SVG renderers handle this gracefully). |
Write a non-recursive version of `comma`, using `bytes.Buffer` instead of string concatenation.
|
Write a non-recursive version of `comma`, using `bytes.Buffer` instead of string concatenation. |
Enhance `comma` so it deals correctly with floating-point numbers and an optional sign.
|
Enhance `comma` so it deals correctly with floating-point numbers and an optional sign. |
Write a function that reports whether two strings are anagrams of each other, that is, they contain the same letters in a different order.
|
Write a function that reports whether two strings are anagrams of each other, that is, they contain the same letters in a different order. |
Write const declarations for KB, MB, up through YB as compactly as you can.
|
Write const declarations for KB, MB, up through YB as compactly as you can. |
Experiment with vizualizations of other functions from the `math` package.
|
Experiment with vizualizations of other functions from the `math` package. |
Color each polygon based on its height, so that the peaks are colored red (`#ff0000`) and the valleys blue ('#0000ff').
|
Color each polygon based on its height, so that the peaks are colored red (`#ff0000`) and the valleys blue ('#0000ff'). |
Following the approach of the Lissajous example in Section 1.7, construct a web server that computes surfaces and writes SVG data to the client.
|
Following the approach of the Lissajous example in Section 1.7, construct a web server that computes surfaces and writes SVG data to the client. |
Implement a full-color Mandelbrot set using the function `image.NewRBA` and the type `color.RGBA` or `color.YCbCr`.
|
Implement a full-color Mandelbrot set using the function `image.NewRBA` and the type `color.RGBA` or `color.YCbCr`. |
Supersampling is a technique to reduce the effect of pixelation by computing the color value at several points within each pixel and taking the average.
|
Supersampling is a technique to reduce the effect of pixelation by computing the color value at several points within each pixel and taking the average. |
Another simple fractal uses Newton's method to find complex solutions to a function such as `z^4-1 = 0`.
|
Another simple fractal uses Newton's method to find complex solutions to a function such as `z^4-1 = 0`. |
Rendering fractals at high zoom levels demands great arithmetic precision.
|
Rendering fractals at high zoom levels demands great arithmetic precision. |
mandelbrot
Rendering fractals at high zoom levels demands great arithmetic precision.
|
Rendering fractals at high zoom levels demands great arithmetic precision. |
Write a web server that renders fractals and writes the image data to the client.
|
Write a web server that renders fractals and writes the image data to the client. |
Click to show internal directories.
Click to hide internal directories.