Documentation ¶
Overview ¶
2D rendering of data slices.
Index ¶
- Constants
- func ColorMap(min, max, value float32, colormap ...color.RGBA) color.RGBA
- func GIF256(w io.Writer, img image.Image) error
- func HSLMap(x, y, z float32) color.RGBA
- func HSLtoRGB(h, s, l float32) color.RGBA
- func Image(f *data.Slice, fmin, fmax string, arrowSize int, colormap ...color.RGBA) *image.RGBA
- func JPEG100(w io.Writer, img image.Image) error
- func On(img *image.RGBA, f *data.Slice, fmin, fmax string, arrowSize int, ...)
- func PNG(w io.Writer, img image.Image) error
- func Render(out io.Writer, f *data.Slice, min, max string, arrowSize int, encode codec, ...) error
- func RenderFile(fname string, f *data.Slice, min, max string, arrowSize int, ...) error
- func RenderFormat(out io.Writer, f *data.Slice, min, max string, arrowSize int, format string, ...) error
- func SVG(out io.Writer, arr [3][][][]float32)
- type Canvas
Constants ¶
View Source
const ( X = 0 Y = 1 Z = 2 )
Variables ¶
This section is empty.
Functions ¶
func Image ¶
Renders an image of slice. fmin, fmax = "auto" or a number to set the min/max color scale.
func Render ¶
func Render(out io.Writer, f *data.Slice, min, max string, arrowSize int, encode codec, colormap ...color.RGBA) error
Render data and encode with arbitrary codec.
func RenderFile ¶
func RenderFormat ¶
Types ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.