Go to the source code of this file.
|
| REG_FIDDLE (IPoint_add_operator, 256, 128, false, 0) |
|
◆ REG_FIDDLE()
REG_FIDDLE |
( |
IPoint_add_operator |
, |
|
|
256 |
, |
|
|
128 |
, |
|
|
false |
, |
|
|
0 |
|
|
) |
| |
Definition at line 5 of file IPoint_add_operator.cpp.
5 {
8 for (
size_t i = 0; i <
count - 1; ++i) {
13 }
14 };
17 paint.setAntiAlias(
true);
19 canvas->
scale(30, 15);
22 for (
auto& point :
points) {
23 point = point + mod;
25 mod.fY += 1;
26 }
29}
30}
static const int points[]
constexpr SkColor SK_ColorRED
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
void drawLine(SkScalar x0, SkScalar y0, SkScalar x1, SkScalar y1, const SkPaint &paint)
void scale(SkScalar sx, SkScalar sy)
@ kStroke_Style
set to stroke geometry
void iset(int32_t x, int32_t y)