Documentation ¶
Index ¶
- Constants
- type AnimUtil
- func (_ AnimUtil) DrawColourBars(gc *draw2dimg.GraphicContext, bounds util.Rectangle, cols ...color.Color) (float64, float64)
- func (_ AnimUtil) DrawColourBarsVertical(gc *draw2dimg.GraphicContext, bounds util.Rectangle, cols ...color.Color) (float64, float64)
- func (_ AnimUtil) DrawString(gc *draw2dimg.GraphicContext, x, y float64, s string, a ...interface{}) float64
- func (_ AnimUtil) FitString(l, t, r, b, sl, st, sr, sb float64) (float64, float64, float64, float64)
- func (_ AnimUtil) FloatToA(v float64) string
- func (_ AnimUtil) GetStringBounds(gc *draw2dimg.GraphicContext, s string) util.Rectangle
- func (_ AnimUtil) Rect(x1, y1, x2, y2 float64) util.Rectangle
- func (_ AnimUtil) StringSize(gc *draw2dimg.GraphicContext, s string, a ...interface{}) util.Rectangle
- type Colour
- func (_ Colour) Colour(hex string) (color.RGBA, error)
- func (_ Colour) ColourString(c color.Color) string
- func (_ Colour) Gradient(n int, from, to color.Color) []color.Color
- func (_ Colour) Grey(y int) color.Color
- func (_ Colour) GreyScale(i int) color.Color
- func (_ Colour) Histogram() *color4.Histogram
- func (_ Colour) Invert(c color.Color) color.Color
- type Draw2Dimg
- type Filter
- func (_ Filter) Equalize(h *color.Histogram, b image.Rectangle) graph.Filter
- func (_ Filter) Filter(f graph.Filter, src image.Image, dst graph.Image, b image.Rectangle) error
- func (_ Filter) FilterNew(f graph.Filter, src image.Image) (graph.Image, error)
- func (_ Filter) FilterOver(f graph.Filter, src graph.Image) error
- type Graph
- func (_ Graph) FillPoly(gc *draw2dimg.GraphicContext, c color.Color, v ...float64)
- func (_ Graph) FillPolyRel(gc *draw2dimg.GraphicContext, c color.Color, v ...float64)
- func (_ Graph) FillRectangle(gc *draw2dimg.GraphicContext, x, y, w, h float64, c color.Color) (float64, float64)
- func (g Graph) New1080p() renderer.Context
- func (g Graph) New4k() renderer.Context
- func (g Graph) New720p() renderer.Context
- func (g Graph) NewContext() renderer.Context
- func (_ Graph) NewFont(name string, size float64, family draw2d.FontFamily, style draw2d.FontStyle) font.Font
- func (_ Graph) NewSizedContext(w, h int) renderer.Context
- func (_ Graph) ParseFont(s string) (font.Font, error)
- func (_ Graph) Rectangle(gc *draw2dimg.GraphicContext, x, y, w, h float64)
- func (_ Graph) RelLine(gc *draw2dimg.GraphicContext, x, y float64, v ...float64)
- func (_ Graph) SetFont(gc *draw2dimg.GraphicContext, s string) error
- type Image
- func (_ Image) Fill(ctx renderer.Context, background color.Color)
- func (_ Image) Histogram(src image.Image) *color2.Histogram
- func (_ Image) New1080p() *image.RGBA
- func (g Image) New2160p() *image.RGBA
- func (_ Image) New4K() *image.RGBA
- func (_ Image) New720p() *image.RGBA
- func (_ Image) NewFloat16(w, h int) *exr.RGBAImage
- func (_ Image) NewFloat32(w, h int) *exr.RGBAImage
- func (_ Image) NewRGBA(w, h int) *image.RGBA
- func (_ Image) NewRGBA64(w, h int) *image.RGBA64
- type Mapper
- func (_ Mapper) Blue() graph.Mapper
- func (_ Mapper) Blue16() graph.Mapper
- func (_ Mapper) Brighten(amount int) graph.Mapper
- func (_ Mapper) Darken(amount int) graph.Mapper
- func (_ Mapper) DeltaRGB(r, g, b int) graph.Mapper
- func (_ Mapper) Filter(m graph.Mapper) graph.Filter
- func (_ Mapper) Green() graph.Mapper
- func (_ Mapper) Green16() graph.Mapper
- func (_ Mapper) MaxLevel(r, g, b int) graph.Mapper
- func (_ Mapper) MinLevel(r, g, b int) graph.Mapper
- func (_ Mapper) Mono() graph.Mapper
- func (_ Mapper) Mono16() graph.Mapper
- func (_ Mapper) Red() graph.Mapper
- func (_ Mapper) Red16() graph.Mapper
Constants ¶
View Source
const ( Width4K = 3840 // 4K resolution, 2160p Height4K = 2160 // 4K resolution, 2160p Width1080p = 1920 // FHD 1080p resolution Height1080p = 1080 // FHD 1080p resolution Width720p = 1280 // HD 720p resolution Height720p = 720 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnimUtil ¶
type AnimUtil struct { }
func (AnimUtil) DrawColourBars ¶
func (AnimUtil) DrawColourBarsVertical ¶
func (AnimUtil) DrawString ¶
func (AnimUtil) GetStringBounds ¶
func (AnimUtil) StringSize ¶
type Draw2Dimg ¶
type Draw2Dimg struct{}
func (Draw2Dimg) NewGraphicContext ¶
func (_ Draw2Dimg) NewGraphicContext(img draw.Image) *draw2dimg.GraphicContext
type Filter ¶
type Filter struct{}
func (Filter) Filter ¶
Filter applies a graph.Filter on a source image within the specified bounds, writing the result to the destination image.
The source and destination image may be the same Image if the filter supports it.
type Graph ¶
type Graph struct { }
func (Graph) FillPolyRel ¶
func (Graph) FillRectangle ¶
func (Graph) NewContext ¶
type Image ¶
func (Image) New1080p ¶
New1080p creates a new RGBA image at 1080p resolution, also known as FHD or Full HD.
func (Image) New720p ¶
New720p creates a new RGBA image at 720p resolution, also known has HD or HD Ready.
func (Image) NewFloat16 ¶
NewFloat16 returns a RGBAImage using float16 for each colour component
func (Image) NewFloat32 ¶
NewFloat32 returns a RGBAImage using float32 for each colour component
Source Files ¶
Click to show internal directories.
Click to hide internal directories.