Jazz2::Scripting::jjPAL class

Public static functions

static auto Create(jjPAL* self) -> jjPAL*

Constructors, destructors, conversion operators

jjPAL()
~jjPAL()

Public functions

void AddRef()
void Release()
auto operator=(const jjPAL& o) -> jjPAL&
auto operator==(const jjPAL& o) -> bool
auto getColor(std::uint8_t idx) -> jjPALCOLOR&
auto getConstColor(std::uint8_t idx) const -> const jjPALCOLOR&
auto setColorEntry(std::uint8_t idx, jjPALCOLOR& value) -> jjPALCOLOR&
void reset()
void apply()
auto load(const String& filename) -> bool
void fill(std::uint8_t red, std::uint8_t green, std::uint8_t blue, float opacity)
void fillTint(std::uint8_t red, std::uint8_t green, std::uint8_t blue, std::uint8_t start, std::uint8_t length, float opacity)
void fillFromColor(jjPALCOLOR color, float opacity)
void fillTintFromColor(jjPALCOLOR color, std::uint8_t start, std::uint8_t length, float opacity)
void gradient(std::uint8_t red1, std::uint8_t green1, std::uint8_t blue1, std::uint8_t red2, std::uint8_t green2, std::uint8_t blue2, std::uint8_t start, std::uint8_t length, float opacity, bool inclusive)
void gradientFromColor(jjPALCOLOR color1, jjPALCOLOR color2, std::uint8_t start, std::uint8_t length, float opacity, bool inclusive)
void copyFrom(std::uint8_t start, std::uint8_t length, std::uint8_t start2, const jjPAL& source, float opacity)
auto findNearestColor(jjPALCOLOR color) -> std::uint8_t