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 ...ColorMapSpec) *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
- type ColorMapSpec
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 ...ColorMapSpec) error
Render data and encode with arbitrary codec.
func RenderFile ¶
func RenderFormat ¶
Types ¶
type Canvas ¶
type Canvas struct { *image.RGBA *raster.RGBAPainter // contains filtered or unexported fields }
A Canvas is used to draw on.
type ColorMapSpec ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.