Go to the source code of this file.
◆ config_paint()
static void config_paint |
( |
SkPaint * |
paint | ) |
|
|
static |
Definition at line 29 of file main.mm.
29 {
30 if (!
paint->getShader()) {
35 }
36}
static const int points[]
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)
constexpr SkColor4f kWhite
constexpr SkColor4f kBlack
PODArray< SkColor > colors
◆ draw_example()
static void draw_example |
( |
SkSurface * |
surface, |
|
|
const SkPaint & |
paint, |
|
|
double |
rotation |
|
) |
| |
|
static |
Definition at line 38 of file main.mm.
38 {
43}
void translate(SkScalar dx, SkScalar dy)
void drawPaint(const SkPaint &paint)
void rotate(SkScalar degrees)
◆ main()
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
Definition at line 145 of file main.mm.
145 {
146 @autoreleasepool {
147 return UIApplicationMain(argc,
argv, nil, NSStringFromClass([
AppDelegate class]));
148 }
149}