package quantize
Import Path
github.com/ericpauley/go-quantize/quantize (on go.dev)
Dependency Relation
imports 3 packages, and imported by one package
Involved Source Files
bucket.go
Package quantize offers an implementation of the draw.Quantize interface using an optimized Median Cut method,
including advanced functionality for fine-grained control of color priority
Package-Level Type Names (total 2)
MedianCutQuantizer implements the go draw.Quantizer interface using the Median Cut method
Whether to create a transparent entry
The type of aggregation to be used to find final colors
The weighting function to use on each pixel
Quantize quantizes an image to a palette and returns the palette
MedianCutQuantizer : image/draw.Quantizer
Package-Level Constants (total 2)
Mean - weighted average all values
Mode - pick the highest priority value
![]() |
The pages are generated with Golds v0.8.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |