Spec-Zone.ru › Dart 1

dart:html

setFillColorHsl method

void setFillColorHsl(int h, num s, num l, [ num a = 1 ])

Sets the color used inside shapes. h is in degrees, 0-360. s, l are in percent, 0-100. a is 0-1.

Source

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 Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/1.24.3/dart-html/CanvasRenderingContext2D/setFillColorHsl.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API