Definition at line 560 of file MotionMarkSlide.cpp.
◆ CanvasLinePathStage()
CanvasLinePathStage::CanvasLinePathStage |
( |
SkSize |
size | ) |
|
|
inline |
◆ ~CanvasLinePathStage()
CanvasLinePathStage::~CanvasLinePathStage |
( |
| ) |
|
|
overridedefault |
◆ animate()
bool CanvasLinePathStage::animate |
( |
double |
| ) |
|
|
inlineoverridevirtual |
◆ createObject()
std::unique_ptr< MMObject > CanvasLinePathStage::createObject |
( |
| ) |
|
|
inlineoverridevirtual |
Implements Stage.
Definition at line 607 of file MotionMarkSlide.cpp.
607 {
610 } else {
614 }
615 }
std::unique_ptr< CanvasLinePoint > make_line_path(SkRandom *random, SkSize size, SkPoint *prev)
std::vector< std::unique_ptr< MMObject > > fObjects
◆ draw()
void CanvasLinePathStage::draw |
( |
SkCanvas * |
canvas | ) |
|
|
inlineoverridevirtual |
Reimplemented from Stage.
Definition at line 569 of file MotionMarkSlide.cpp.
569 {
571
574 paint.setAntiAlias(
true);
576 for (
size_t i = 0; i <
fObjects.size(); ++i) {
578 if (i == 0) {
582 } else {
583 object->append(¤tPath);
584
587
592 }
593
595 object->toggleIsSplit();
596 }
597 }
598 }
600 }
constexpr SkColor SK_ColorWHITE
void clear(SkColor color)
void drawPath(const SkPath &path, const SkPaint &paint)
@ kStroke_Style
set to stroke geometry
SkPath & moveTo(SkScalar x, SkScalar y)
The documentation for this class was generated from the following file: