Versions in this module Expand all Collapse all v0 v0.28.0 Jun 18, 2024 Changes in this version + type Monochrome bool + func NewMonochrome(r, g, b uint8) Monochrome + func (c Monochrome) BitsPerPixel() int + func (c Monochrome) RGBA() color.RGBA v0.27.0 Feb 26, 2024 Changes in this version + func NewColor[T Color](r, g, b uint8) T + func NewLinearColor[T Color](r, g, b uint8) T + type BaseColor interface + BitsPerPixel func() int + RGBA func() color.RGBA + type Color interface + type Image struct + func NewImage[T Color](width, height int) Image[T] + func (img Image[T]) FillSolidColor(color T) + func (img Image[T]) Get(x, y int) T + func (img Image[T]) Len() int + func (img Image[T]) LimitHeight(height int) Image[T] + func (img Image[T]) RawBuffer() []uint8 + func (img Image[T]) Rescale(width, height int) Image[T] + func (img Image[T]) Set(x, y int, c T) + func (img Image[T]) Size() (int, int) + type RGB444BE uint16 + func NewRGB444BE(r, g, b uint8) RGB444BE + func (c RGB444BE) BitsPerPixel() int + func (c RGB444BE) RGBA() color.RGBA + type RGB555 uint16 + func NewRGB555(r, g, b uint8) RGB555 + func (c RGB555) BitsPerPixel() int + func (c RGB555) RGBA() color.RGBA + type RGB565BE uint16 + func NewRGB565BE(r, g, b uint8) RGB565BE + func (c RGB565BE) BitsPerPixel() int + func (c RGB565BE) RGBA() color.RGBA + type RGB888 struct + B uint8 + G uint8 + R uint8 + func NewRGB888(r, g, b uint8) RGB888 + func (c RGB888) BitsPerPixel() int + func (c RGB888) RGBA() color.RGBA