# File lib/as_color.rb, line 78 def initialize(h, s, v, a=1) @h = h%1 @s = s.to_f.clamp(0, 1) @v = v.to_f.clamp(0, 1) @a = a.to_f.clamp(0, 1) end