@Override
  public void draw(Canvas canvas) {
    final int w = canvas.getWidth();
    final int h = canvas.getHeight();

    for (int x = 0; x < w; x += mSquareSize) {

      boolean b = (x / mSquareSize) % 2 == 0;
      for (int y = 0; y < h; y += mSquareSize) {

        mPaint.setColor(b ? mColorDark : mColorLight);
        canvas.drawRect(x, y, x + mSquareSize, y + mSquareSize, mPaint);

        b = !b;
      }
    }
  }
A simple checker board drawable that creates a two-colored pattern. It is used to highlight that
images are indeed transparent.
samples/showcase/src/main/java/com/facebook/fresco/samples/showcase/misc/CheckerBoardDrawable.java