switchPainterMode method

void switchPainterMode(
  1. DrawStyle style
)

switch painter's style

  • e.g. color、mosaic

Implementation

void switchPainterMode(DrawStyle style) {
  if(lastDrawStyle == style) return;
  changePainterColor(pColor);
  painterController.drawStyle = style;
}