setFillColorHsl method
Sets the color used inside shapes.
h
is in degrees, 0-360.
s
, l
are in percent, 0-100.
a
is 0-1.
Implementation
void setFillColorHsl(int h, num s, num l, [num a = 1]) {
this.fillStyle = 'hsla($h, $s%, $l%, $a)';
}
api.dart.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic. Learn more.
Sets the color used inside shapes.
h
is in degrees, 0-360.
s
, l
are in percent, 0-100.
a
is 0-1.
void setFillColorHsl(int h, num s, num l, [num a = 1]) {
this.fillStyle = 'hsla($h, $s%, $l%, $a)';
}