Go to the source code of this file.
◆ REG_FIDDLE()
REG_FIDDLE |
( |
Canvas_rotate |
, |
|
|
256 |
, |
|
|
256 |
, |
|
|
false |
, |
|
|
0 |
|
|
) |
| |
Definition at line 4 of file Canvas_rotate.cpp.
4 {
11 canvas->
rotate(10 * 360 / 60);
14 canvas->
rotate((5 + 10.f/60) * 360 / 12);
16}
17}
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
void translate(SkScalar dx, SkScalar dy)
void drawLine(SkScalar x0, SkScalar y0, SkScalar x1, SkScalar y1, const SkPaint &paint)
void rotate(SkScalar degrees)
void drawCircle(SkScalar cx, SkScalar cy, SkScalar radius, const SkPaint &paint)
@ kStroke_Style
set to stroke geometry