4 {
7 double value = ::fmod(t + phase, period);
8 double half = period / 2.0;
9 double diff = ::fabs(value - half);
11}
12
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;
16
20
25
26 const float intervals[] = { 12, 6 };
30}
31}
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)
static constexpr SkRect MakeXYWH(float x, float y, float w, float h)