| 49 | void Palette::addEntry(const PaletteEntry entry) { _entries.push_back(entry); } |
| 50 | |
| 51 | void Palette::addEntries(const std::vector<PaletteEntry> &newEntries) { |
| 52 | for (const auto &entry : newEntries) { |
| 53 | addEntry(entry); |
| 54 | } |
| 55 | } |
| 56 | |
| 57 | uint8_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)); |
nothing calls this directly
no outgoing calls
no test coverage detected