strokeStyle function

void strokeStyle(
  1. dynamic context2D,
  2. String strokeColor
)

Set the stroke style using an 'r,g,b,a' string (converted to 'rgba(...)').

Implementation

void strokeStyle(dynamic context2D, String strokeColor) {
  if (context2D is web.CanvasRenderingContext2D) {
    context2D.strokeStyle = 'rgba($strokeColor)'.toJS;
  }
}