25#include "graphics/pixelformat.h"
48void loadPal(
const char *fileName);
50void loadRelatedPalette(
const char *fileName);
120 Palette &rotateLeft(
byte firstIndex,
byte lastIndex);
121 Palette &saturatedAddColor(
Palette &output,
byte firstIndex,
byte lastIndex,
signed r,
signed g,
signed b)
const;
150 uint colorCount()
const;
174 bool ensureContrast(
byte &minBrightnessColorIndex);
175 bool isEqual(
byte index1,
byte index2);
178 int findMinBrightnessColorIndex(uint minColorIndex = 1);
179 byte brightness(
byte colorIndex);
181 void saturatedAddColor(
Color &result,
const Color &baseColor,
signed r,
signed g,
signed b)
const;
uint8 getB(byte index) const
void setGlobalOSystemPalette() const
uint8 getG(byte index) const
Palette & saturatedAddColor(Palette &output, byte firstIndex, byte lastIndex, signed rSource, signed gSource, signed bSource, const Graphics::PixelFormat &sourceFormat) const
const Graphics::PixelFormat & colorFormat() const
uint8 getR(byte index) const
Palette(const Graphics::PixelFormat &format=Graphics::PixelFormat(), const uint numColors=0)
Palette & rotateRight(byte firstIndex, byte lastIndex)
Palette & load(const byte *buf, const uint size, const Graphics::PixelFormat &format, const uint numColors, const EndianType endian)
byte * save(byte *buf, const uint size, const EndianType endian) const
byte * save(byte *buf, const uint size, const Graphics::PixelFormat &format, const uint numColors, const EndianType endian, const byte firstIndex=0) const
byte * save(byte *buf, const uint size, const Graphics::PixelFormat &format, const EndianType endian) const
Color getColor(byte index) const
Palette & saturatedAddNormalizedGray(Palette &output, byte firstIndex, byte lastIndex, signed grayDividend, signed grayDenominator) const
EndianType
Definition: pal.h:36