MCPcopy Create free account
hub / github.com/AbyssEngine/AbyssEngineOld / addEntries

Method addEntries

src/Abyss/DataTypes/Palette.cpp:51–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49void Palette::addEntry(const PaletteEntry entry) { _entries.push_back(entry); }
50
51void Palette::addEntries(const std::vector<PaletteEntry> &newEntries) {
52 for (const auto &entry : newEntries) {
53 addEntry(entry);
54 }
55}
56
57uint8_t Palette::colorAdjust(const uint8_t value) {
58 return static_cast<uint8_t>(std::clamp(std::pow(static_cast<float>(value) / 255.0f, gamma) * 255.0f * brightness, 0.0f, 255.0f));

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected