[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
+21
View File
@@ -0,0 +1,21 @@
/*
* Copyright 2016 - 2020 gtalent2@gmail.com
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#include "util.hpp"
namespace nostalgia::core {
QColor toQColor(Color16 nc) {
const auto r = red32(nc);
const auto g = green32(nc);
const auto b = blue32(nc);
const auto a = alpha32(nc);
return QColor(r, g, b, a);
}
}