Module retroimg::color

source ·
Expand description

Color depth manipulation module

Modules

  • CGA color palettes.
  • EGA color palettes.

Structs

  • Color depth emulating a combination of one freely selectable background color (B) with any of the other colors (F).
  • A collection of palettes, the one yielding the lowest loss is used.
  • The options for transforming an image to have a different color depth.
  • Color depth defined by a hardware-level palette of RGB colors.
  • An error returned by a failed attempt at creating a LossAlgorithm from a string.
  • A color depth implementation with color mapping.
  • True 24-bit color, 8 bits per channel, virtually no limit in color depth.
  • A color mapper that reduces pixel precision to 16 bits per pixel (5 bits for red, 6 bits for green, 6 bits for blue).
  • A color mapper that reduces sample precision to 6 bits per sample (18 bits per pixel).

Enums

  • Enumeration of supported color distance algorithms for loss calculation.

Statics

  • 64 color palette established by the full-color EGA standard.
  • 64 color palette established by the full-color EGA standard.

Traits

Functions

Type Aliases

  • A color depth implementation which retains all 24 bits per pixel.
  • VGA 16-bit color, also called High color mode in legacy systems (5 bits for red and blue channels, 6 bits for green)
  • VGA 18-bit color (64 levels per channel)