Метод setFillColorRgb
Устанавливает цвет, используемый внутри фигур. r, g, b принимают значения от 0 до 255, a — от 0 до 1.
Реализация
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 BSD 3-Clause "New" or "Revised" License.
https://api.dart.dev/stable/2.18.5/dart-html/CanvasRenderingContext2D/setFillColorRgb.html