[nostalgia/core/studio] Add PaletteEditor
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user