Versions in this module Expand all Collapse all v0 v0.1.0 Jan 19, 2024 Changes in this version + var Workers int = runtime.NumCPU() + func Decode(r io.Reader) (image.Image, error) + func Draw(img *image.NRGBA, rect image.Rectangle, process PixelProcessor) + func DrawColor(img *image.NRGBA, rect image.Rectangle, c color.NRGBA) + func DrawLinearGradient(img *image.NRGBA, rect image.Rectangle, angle float64, ...) + func DrawRadialGradient(img *image.NRGBA, rect image.Rectangle, startColor, endColor color.NRGBA, ...) + func MergeColors(background, foreground color.NRGBA) color.NRGBA + func MixNRGBA(a float64, x, y color.NRGBA) color.NRGBA + func Paste(dst *image.NRGBA, src image.Image, x, y int) + type PixelProcessor func(x, y int) color.NRGBA v0.0.1 Dec 5, 2023 Changes in this version + func Clamp(x, minVal, maxVal float64) float64 + func MixRGBA(a float64, x, y color.RGBA) color.RGBA + func New(width, height int) *image.RGBA + func Radians(angle float64) float64 + func Render(img *image.RGBA, renderer Renderer) + func SaveJPEG(img image.Image, path string, o *jpeg.Options) error + func SavePNG(img image.Image, path string) error + func SmoothStep(edge0, edge1, x float64) float64 + type Renderer func(img image.Image, point image.Point) color.RGBA + func LinearGradient(angle float64, startColor, endColor color.RGBA) Renderer + func RadialGradient(startColor, endColor color.RGBA, center image.Point) Renderer