dart / 1.24.3 / dart-html / canvasrenderingcontext2d / setfillcolorrgb.html /

setFillColorRgb method

void setFillColorRgb( int r, int g, int b, [ num a = 1 ])

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

Source

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

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/1.24.3/dart-html/CanvasRenderingContext2D/setFillColorRgb.html