getPaint method

Paint getPaint()

Implementation

Paint getPaint() {
  Paint paint = Paint();
  paint.color = color;
  if (behaviour.shape == ShapeType.FilledCircle ||
      behaviour.shape == ShapeType.FilledSquare)
    paint.style = PaintingStyle.fill;
  else
    paint.style = PaintingStyle.stroke;

  return paint;
}