stroke2 method

void stroke2(
  1. Color color,
  2. int alpha
)

@param alpha opacity of the stroke

Implementation

void stroke2(Color color, int alpha) {
  /*  if (recorder != null) recorder.stroke(rgb, alpha);
  g.stroke(rgb, alpha); */
  // color.alpha = alpha;
  color.withAlpha(alpha);
  strokePaint.color = color.withAlpha(alpha);
  useStroke = true;
}