7 double value = ::fmod(t + phase, period);
8 double half = period / 2.0;
9 double diff = ::fabs(
value - half);
22 float bX = ballX * 472 + 20;
23 float bY = ballY * 200 + 28;
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)
virtual GrRecordingContext * recordingContext() const
void clear(SkColor color)
void drawCircle(SkScalar cx, SkScalar cy, SkScalar radius, const SkPaint &paint)
static float PingPong(double time, float period, float phase, float ends, float mid)
REG_FIDDLE_ANIMATED(pong, 256, 256, false, 0, 10)
static constexpr SkRect MakeXYWH(float x, float y, float w, float h)