code: private void initializePaint() {
          paint = new Paint();
          paint.setAntiAlias(true);
          paint.setStyle(Paint.Style.STROKE);
          paint.setStrokeWidth(getThickness());
          paint.setColor(getColor());
      }
docs: Initializes the paint, which is used for drawing.