63 [[nodiscard]]
const std::bitset<num_colors> &
colors()
const
81 std::bitset<num_colors> colors_;
106 return std::hash<std::string>{}(color_set.colors().to_string());
Represents a color index value for palette operations.
A set of colors represented as a bitset.
const std::bitset< num_colors > & colors() const
Gets the underlying bitset.
bool test(ColorIndex index) const
Tests whether a bit at the given index is set.
void reset(ColorIndex index)
Resets a bit at the given index to false.
void set(ColorIndex index, bool value=true)
Sets a bit at the given index.
bool operator==(const ColorSet &other) const =default
Compares two ColorSet objects for equality.
std::size_t operator()(const porytiles2::ColorSet &color_set) const noexcept
Computes the hash value for a ColorSet.