Documentation
¶
Index ¶
- func DrawGrid(source *image.RGBA, lowFreq, highFreq int64, startTime, endTime time.Time) *image.RGBA
- func GetColor(lvl uint16) color.RGBA
- func GetMaxImageHeight(db *sql.DB, source, identifier string, startFreq, endFreq int64, ...) (int, error)
- func GetMaxImageWidth(db *sql.DB, source, identifier string, startFreq, endFreq int64, ...) (int, error)
- func GetReadableFreq(freq int64) string
- func GetSampleCount(db *sql.DB, source, identifier string, startFreq, endFreq int64, ...) (int, error)
- type FilterOptions
- type ImageOptions
- type RenderMetadata
- type RenderRequest
- type RenderResult
- type SourceMetadata
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetColor ¶
GetColor determines the color of a pixel based on a color gradient and a pixel "level". http://www.andrewnoske.com/wiki/Code_-_heatmaps_and_color_gradients This is mostly a copy of https://github.com/finfinack/netmap/blob/master/netmap.go.
func GetMaxImageHeight ¶
func GetMaxImageWidth ¶
func GetReadableFreq ¶
Types ¶
type FilterOptions ¶
type ImageOptions ¶
type RenderMetadata ¶
type RenderRequest ¶
type RenderRequest struct { Filter *FilterOptions Image *ImageOptions }
type RenderResult ¶
type RenderResult struct { Image image.Image SourceMeta *SourceMetadata ImageMeta *RenderMetadata }
func Render ¶
func Render(db *sql.DB, req *RenderRequest) (*RenderResult, error)
Click to show internal directories.
Click to hide internal directories.