7 double value = ::fmod(t + phase, period);
8 double half = period / 2.0;
9 double diff = ::fabs(
value - half);
14 float bX = PingPong(
frame *
duration, 2.5f, 0.0f, 0, 1) * 472 + 20;
15 float bY = PingPong(
frame *
duration, 2.0f, 0.4f, 0, 1) * 200 + 28;
26 const float intervals[] = { 12, 6 };
29 canvas->
drawLine({256,0}, {256, 256}, p);
constexpr SkColor SK_ColorBLACK
constexpr SkColor SK_ColorWHITE
#define SkDoubleToScalar(x)
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
void drawRect(const SkRect &rect, const SkPaint &paint)
void drawLine(SkScalar x0, SkScalar y0, SkScalar x1, SkScalar y1, const SkPaint &paint)
void clear(SkColor color)
void drawCircle(SkScalar cx, SkScalar cy, SkScalar radius, const SkPaint &paint)
static sk_sp< SkPathEffect > Make(const SkScalar intervals[], int count, SkScalar phase)
#define REG_FIDDLE_ANIMATED(NAME, W, H, T, I, DURATION)
static constexpr SkRect MakeXYWH(float x, float y, float w, float h)