метод setFillColorHsl
Задает цвет заливки фигур. h измеряется в градусах, от 0 до 360. s и l измеряются в процентах, от 0 до 100. a — от 0 до 1.
Реализация
void setFillColorHsl(int h, num s, num l, [num a = 1]) {
this.fillStyle = 'hsla($h, $s%, $l%, $a)';
}
© 2012 the Dart project authors
Licensed under the BSD 3-Clause "New" or "Revised" License.
https://api.dart.dev/stable/2.19.6/dart-html/CanvasRenderingContext2D/setFillColorHsl.html