Example #1
0
void PushUnlockDial(TriMesh<VertexPosColor> &mesh, float2 pos, float rad, float progress,
                    uint color, float alpha)
{
    mesh.color(color, alpha * smooth_clamp(0.f, 1.f, progress, 0.2f));
    mesh.PushSector(pos, rad * lerp(1.3f, 1.f, progress), progress, M_PIf * progress);
}