20#include <initializer_list>
39 for (
auto aa : {
false,
true}) {
41 paint.setShader(shader);
43 paint.setAntiAlias(aa);
59 paint.setStrokeMiter(0.01f);
67 paint.setStrokeWidth(0);
constexpr SkColor SK_ColorBLUE
constexpr SkColor SK_ColorRED
static sk_sp< SkShader > MakeLinear(const SkPoint pts[2], const SkColor colors[], const SkScalar pos[], int count, SkTileMode mode, uint32_t flags=0, const SkMatrix *localMatrix=nullptr)
@ kStroke_Style
set to stroke geometry
@ kMiter_Join
extends to miter limit
@ kBevel_Join
connects outside edges
#define DEF_SIMPLE_GM(NAME, CANVAS, W, H)
static constexpr SkPoint kPts[kPtsCount]
static constexpr float kStrokeWidth
SkScalar fBottom
larger y-axis bounds
SkScalar fLeft
smaller x-axis bounds
SkScalar fRight
larger x-axis bounds
constexpr float centerX() const
constexpr float height() const
constexpr float centerY() const
constexpr float width() const
SkScalar fTop
smaller y-axis bounds