MCPcopy Create free account
hub / github.com/Wassimulator/CactusViewer / UI_lerp_f32

Function UI_lerp_f32

include/ui/ui_core.cpp:149–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

147}
148
149static f32 UI_lerp_f32(f32 a, f32 b, f32 t)
150{
151 if (UI_abs(a - b) > 3) G->force_loop = true;
152 return (a + (b - a) * t);
153}
154
155u32 UI_lerp_u32(u32 col_a, u32 col_b, f32 t, bool refresh_test = false) {
156 u8 r1 = (col_a >> 24) & 0xFF, r2 = (col_b >> 24) & 0xFF;

Callers 1

UI_push_parent_deferFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected