Struct quake_files::palette::Palette [] [src]

pub struct Palette { /* fields omitted */ }

A palette for translating indexed colors to actual colors.

Methods

impl Palette
[src]

Reads a palette from a reader and returns it.

Writes this palette to the given Write instance.

Creates a palette from an image. It returns an error if there are more than 256 colors in the image.

Returns the color for an index.

Returns all of the colors in this palette.

Trait Implementations

impl Debug for Palette
[src]

Formats the value using the given formatter.