9 for (
int i = 0; i < (
N *
N); ++i) {
13 for (
int i = 0; i < (
N *
N); ++i) {
14 std::swap(shuffle[i], shuffle[rand() % (
N *
N - i) + i]);
18 for (
int i = 0; i <
N; ++i) {
19 for (
int j = 0; j <
N; ++j) {
20 int x = shuffle[(
N * i) + j] %
N;
21 int y = shuffle[(
N * i) + j] /
N;
constexpr SkColor SK_ColorWHITE
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
bool extractSubset(SkBitmap *dst, const SkIRect &subset) const
void drawColor(SkColor color, SkBlendMode mode=SkBlendMode::kSrcOver)
void drawImage(const SkImage *image, SkScalar left, SkScalar top)
#define REG_FIDDLE(NAME, W, H, TEXT, I)
static constexpr SkIRect MakeXYWH(int32_t x, int32_t y, int32_t w, int32_t h)