D | daa.cpp | 20 static const int K = 49; variable 22 DEF_SIMPLE_GM(daa, canvas, K+350, 5*K) { 29 K*1.5f, K*0.5f, SkFont(), paint); 32 canvas->drawRect({0,0,K,K}, paint); 34 SkPoint tri1[] = {{0,0},{K,K},{0,K},{0,0}}; 35 SkPoint tri2[] = {{0,0},{K,K},{K,0},{0,0}}; 44 canvas->translate(0,K); 48 K*1.5f, K*0.5f, SkFont(), paint); 51 canvas->drawRect({0,0,K,K}, paint); 54 SkPath path = SkPath::Polygon({{0,0},{0,K},{K*0.5f,K},{K*0.5f,0}}, false); [all …]
|