fillStyle function

void fillStyle(
  1. dynamic context2D,
  2. String fillColor
)

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

Implementation

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