25 constexpr static bool kRows[11][12] = {
26 {1,1,1,1,1,1,1,1,1,1,1,1},
27 {0,1,0,1,0,1,0,0,0,0,1,1},
28 {0,0,0,0,1,0,0,0,0,1,1,1},
29 {1,0,1,0,0,0,0,1,0,0,0,0},
30 {0,1,1,0,0,0,0,0,0,1,1,1},
31 {1,0,0,1,0,0,0,0,1,1,1,0},
32 {0,1,0,1,1,1,0,0,1,1,1,0},
33 {1,0,1,0,1,1,1,1,0,1,1,1},
34 {0,0,1,0,0,1,0,0,0,0,0,1},
35 {0,1,1,1,0,0,1,1,1,1,0,0},
36 {1,1,1,1,1,1,1,1,1,1,1,1},
39 constexpr static bool kCols[13][10] = {
40 {1,1,1,1,0,1,1,1,1,1},
41 {0,0,1,0,0,0,1,1,1,0},
42 {0,1,1,0,1,1,1,0,0,1},
43 {1,1,0,0,0,0,1,0,1,0},
44 {0,0,1,0,1,0,0,0,0,1},
45 {0,0,1,1,1,0,0,0,1,0},
46 {0,1,0,1,1,1,0,0,0,0},
47 {1,1,1,0,1,1,1,0,1,0},
48 {1,1,0,1,1,0,0,0,1,0},
49 {0,0,1,0,0,0,0,0,0,1},
50 {0,0,1,1,0,0,0,0,1,0},
51 {0,0,0,0,0,0,1,0,0,1},
52 {1,1,1,1,1,1,0,1,1,1},
75 paint.setStrokeWidth(.1f);
76 paint.setColor(0xff406060);
77 paint.setAntiAlias(
true);
78 paint.setStrokeCap(cap);
81 canvas->
scale(40, 40);
void translate(SkScalar dx, SkScalar dy)
void drawPath(const SkPath &path, const SkPaint &paint)
void scale(SkScalar sx, SkScalar sy)
@ kButt_Cap
no stroke extension
@ kStroke_Style
set to stroke geometry
SkPathBuilder & lineTo(SkPoint pt)
SkPathBuilder & moveTo(SkPoint pt)
static void draw_labyrinth(SkCanvas *canvas, SkPaint::Cap cap)
DEF_SIMPLE_GM(labyrinth_square, canvas, kWidth, kHeight)
static constexpr int kWidth
static constexpr int kHeight
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 keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size