Go to the source code of this file.
◆ GradientFactory
◆ draw_row()
Definition at line 63 of file gradients_degenerate.cpp.
63 {
65
67 text.setAntiAlias(
true);
68
70
74
78 paint.setStrokeWidth(2.0f);
79
84 }
85
87
88
90}
constexpr SkColor SK_ColorBLACK
void drawRect(const SkRect &rect, const SkPaint &paint)
void translate(SkScalar dx, SkScalar dy)
void drawString(const char str[], SkScalar x, SkScalar y, const SkFont &font, const SkPaint &paint)
@ kStrokeAndFill_Style
sets to stroke and fill geometry
static constexpr int TILE_SIZE
static const SkTileMode TILE_MODES[]
static constexpr int TILE_GAP
static const int TILE_MODE_CT
font
Font Metadata and Metrics.
static constexpr SkRect MakeWH(float w, float h)
◆ draw_tile_header()
static void draw_tile_header |
( |
SkCanvas * |
canvas | ) |
|
|
static |
◆ make_2pt_conic()
Definition at line 116 of file gradients_degenerate.cpp.
116 {
117
120}
static sk_sp< SkShader > MakeTwoPointConical(const SkPoint &start, SkScalar startRadius, const SkPoint &end, SkScalar endRadius, const SkColor colors[], const SkScalar pos[], int count, SkTileMode mode, uint32_t flags=0, const SkMatrix *localMatrix=nullptr)
static const int COLOR_CT
static const SkColor COLORS[]
static const SkScalar POS[]
static const SkPoint CENTER
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive mode
◆ make_2pt_conic_zero_rad()
◆ make_linear()
Definition at line 92 of file gradients_degenerate.cpp.
92 {
93
96}
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)
◆ make_radial()
Definition at line 98 of file gradients_degenerate.cpp.
98 {
99
101}
static sk_sp< SkShader > MakeRadial(const SkPoint ¢er, SkScalar radius, const SkColor colors[], const SkScalar pos[], int count, SkTileMode mode, uint32_t flags=0, const SkMatrix *localMatrix=nullptr)
◆ make_sweep()
Definition at line 103 of file gradients_degenerate.cpp.
103 {
104
105 static constexpr SkScalar SWEEP_ANG = 45.0;
107 SWEEP_ANG, SWEEP_ANG, 0, nullptr);
108}
static sk_sp< SkShader > MakeSweep(SkScalar cx, SkScalar cy, const SkColor colors[], const SkScalar pos[], int count, SkTileMode mode, SkScalar startAngle, SkScalar endAngle, uint32_t flags, const SkMatrix *localMatrix)
◆ make_sweep_zero_ang()
◆ CENTER
◆ COLOR_CT
◆ COLORS
Initial value:
constexpr SkColor SK_ColorBLUE
constexpr SkColor SK_ColorRED
constexpr SkColor SK_ColorGREEN
constexpr SkColor SK_ColorWHITE
Definition at line 29 of file gradients_degenerate.cpp.
◆ POS
const SkScalar POS[] = { 0.0, 0.0, 0.5, 1.0, 1.0 } |
|
static |
◆ TILE_GAP
constexpr int TILE_GAP = 10 |
|
staticconstexpr |
◆ TILE_MODE_CT
◆ TILE_MODES
◆ TILE_NAMES
◆ TILE_SIZE
constexpr int TILE_SIZE = 100 |
|
staticconstexpr |