getPaint method
Implementation
Paint getPaint() {
Paint paint = Paint();
paint.color = color;
if (behaviour.shape == ShapeType.FilledCircle ||
behaviour.shape == ShapeType.FilledTriangle)
paint.style = PaintingStyle.fill;
else
paint.style = PaintingStyle.stroke;
return paint;
}