[nostalgia/core/studio] Add PaletteEditor

This commit is contained in:
2020-03-29 23:34:24 -05:00
parent 4c6e053e81
commit 2e7a81563d
8 changed files with 401 additions and 9 deletions
+4
View File
@@ -82,6 +82,10 @@ ox::Error model(T *io, NostalgiaGraphic *ng) {
[[nodiscard]] uint8_t blue32(Color16 c) noexcept;
[[nodiscard]] constexpr uint8_t alpha32(Color16 c) noexcept {
return (c >> 15) * 255;
}
[[nodiscard]] constexpr Color16 color16(uint8_t r, uint8_t g, uint8_t b, uint8_t a) {
return r | (g << 5) | (b << 10) | (a << 15);