235 {
238 float cx = (w - 1) * 0.5f;
239 float cy = (h - 1) * 0.5f;
240 float s =
mParams.endpoint_speed;
241
242
243 float x1 = cx + cx * 0.742f *
sinf(
t * s * 1.13f + 0.20f);
244 float y1 = cy + cy * 0.677f *
sinf(
t * s * 1.71f + 1.30f);
245 float x2 = cx + cx * 0.774f *
sinf(
t * s * 1.89f + 2.20f);
246 float y2 = cy + cy * 0.710f *
sinf(
t * s * 1.37f + 0.70f);
247
249
252 float discDiam = 1.7f;
253 drawDot(x1, y1, discDiam, endA.r, endA.g, endA.b);
254 drawDot(x2, y2, discDiam, endB.r, endB.g, endB.b);
255}
void drawAALine(float x0, float y0, float x1, float y1, float t, float colorShift)
void drawDot(float cx, float cy, float diam, u8 cr, u8 cg, u8 cb)
float sinf(float value) FL_NOEXCEPT