Definition at line 13 of file MegaStrokeSlide.cpp.
◆ MegaStrokeSlide()
MegaStrokeSlide::MegaStrokeSlide |
( |
| ) |
|
|
inline |
Definition at line 15 of file MegaStrokeSlide.cpp.
15 {
17 fAngle = 0;
18 fPlusMinus = 0;
21 for (int index = 0; index < 921; ++index) {
22 for (int segs = 0; segs < 40; ++segs) {
24 }
25 }
27 }
SkPath & lineTo(SkScalar x, SkScalar y)
uint32_t nextRangeU(uint32_t min, uint32_t max)
void setLTRB(float left, float top, float right, float bottom)
◆ animate()
bool MegaStrokeSlide::animate |
( |
double |
| ) |
|
|
inlineoverridevirtual |
◆ draw()
void MegaStrokeSlide::draw |
( |
SkCanvas * |
canvas | ) |
|
|
inlineoverridevirtual |
Implements Slide.
Definition at line 34 of file MegaStrokeSlide.cpp.
34 {
36 paint.setAntiAlias(
true);
37 paint.setARGB(255,255,153,0);
39 paint.setStrokeWidth(1);
40
46
51
52 if ((fPlusMinus ^= 1)) {
53 fAngle += 5;
54 } else {
55 fAngle -= 5;
56 }
59 canvas->
drawRect(divSim, divSimPaint);
60 fClip = divSim;
61 }
constexpr SkColor SK_ColorBLUE
constexpr SkColor SK_ColorWHITE
#define SkScalarSin(radians)
#define SkScalarCos(radians)
void drawRect(const SkRect &rect, const SkPaint &paint)
void clipRect(const SkRect &rect, SkClipOp op, bool doAntiAlias)
void clear(SkColor color)
void drawPath(const SkPath &path, const SkPaint &paint)
void setColor(SkColor color)
@ kStroke_Style
set to stroke geometry
void outset(float dx, float dy)
static constexpr SkRect MakeXYWH(float x, float y, float w, float h)
◆ onChar()
bool MegaStrokeSlide::onChar |
( |
SkUnichar |
uni | ) |
|
|
inlineoverridevirtual |
◆ resize()
The documentation for this class was generated from the following file: