MCPcopy Create free account
hub / github.com/MrNeRF/LichtFeld-Studio / mix

Function mix

src/visualizer/gui/editor/python_editor.cpp:90–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88
89 template <typename ColorA, typename ColorB>
90 Zep::NVec4f mix(const ColorA& a_in, const ColorB& b_in, float t) {
91 const EditorColor a = a_in;
92 const EditorColor b = b_in;
93 return {
94 a.x + (b.x - a.x) * t,
95 a.y + (b.y - a.y) * t,
96 a.z + (b.z - a.z) * t,
97 a.w + (b.w - a.w) * t,
98 };
99 }
100
101 template <typename ColorA, typename ColorB>
102 EditorColor mix_color(const ColorA& a_in, const ColorB& b_in, float t) {

Callers 5

applyThemeMethod · 0.70
cropGuideColorFunction · 0.50
cameraFrustumColorFunction · 0.50
drawDashedLineFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected