class FatStroke : public SampleView {
bool fClosed, fShowStroke, fShowHidden, fShowSkeleton;
int fJoinType, fCapType;
+ float fWidth = 30;
SkPaint fPtsPaint, fHiddenPaint, fSkeletonPaint, fStrokePaint;
public:
enum {
case '4': this->toggle3(fJoinType); return true;
case '5': this->toggle3(fCapType); return true;
case '6': this->toggle(fClosed); return true;
+ case '-': fWidth -= 5; this->inval(nullptr); return true;
+ case '=': fWidth += 5; this->inval(nullptr); return true;
default: break;
}
}
SkPath path;
this->makePath(&path);
+ fStrokePaint.setStrokeWidth(fWidth);
fStrokePaint.setStrokeJoin((SkPaint::Join)fJoinType);
fStrokePaint.setStrokeCap((SkPaint::Cap)fCapType);