Add begin() and end() methods to SnesPalette for improved iteration

This commit is contained in:
scawful
2025-01-18 22:01:45 -05:00
parent bc52fc5116
commit 20ab684aae

View File

@@ -147,6 +147,8 @@ class SnesPalette {
void clear() { colors.clear(); }
auto size() const { return colors.size(); }
auto empty() const { return colors.empty(); }
auto begin() { return colors.begin(); }
auto end() { return colors.end(); }
SnesColor &operator[](int i) {
if (i > colors.size()) {