dart / 2 / dart-html / canvasrenderingcontext2d / setstrokecolorrgb.html

setStrokeColorRgb method

void setStrokeColorRgb(
  1. int r,
  2. int g,
  3. int b,
  4. [num a = 1]
)

Sets the color used for stroking shapes. r, g, b are 0-255, a is 0-1.

Implementation

void setStrokeColorRgb(int r, int g, int b, [num a = 1]) {
  this.strokeStyle = 'rgba($r, $g, $b, $a)';
}

© 2012 the Dart project authors
Licensed under the BSD 3-Clause "New" or "Revised" License.
https://api.dart.dev/stable/2.18.5/dart-html/CanvasRenderingContext2D/setStrokeColorRgb.html