Files
Renderive/Core/architecture/Render_Utils.cpp
T
2026-08-01 20:09:45 +08:00

15 lines
348 B
C++

#include "Renderable.h"
#include "../resource/Turbo_Color_Map.h"
namespace renderive {
std::vector<Pixel> get_turbo_color_gradient() {
std::vector<Pixel> colors;
colors.reserve(Turbo_Color_Map.size());
for (const auto& c : Turbo_Color_Map)
colors.push_back(pack_rgba(c.red, c.green, c.blue, c.alpha));
return colors;
}
}