Skip to content

Commit 53d13ad

Browse files
committed
Fixing HSL to RGB converter in Ruby
1 parent 4df3d90 commit 53d13ad

File tree

1 file changed

+1
-1
lines changed
  • rb/lib/selenium/webdriver/support

1 file changed

+1
-1
lines changed

Diff for: rb/lib/selenium/webdriver/support/color.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def self.from_hsl(h, s, l, a)
6868
b = hue_to_rgb.call(luminocity1, luminocity2, h - 1.0 / 3.0)
6969
end
7070

71-
new r * 256, g * 256, b * 256, a
71+
new (r * 255).round, (g * 255).round, (b * 255).round, a
7272
end
7373

7474

0 commit comments

Comments
 (0)