Skip to content
Browse files

More small fixes: updated documentation about new from_hsla ranges.

  • Loading branch information...
1 parent f5cd839 commit 830a1c2f3deadc9ce111ac29a2af643d8477bfdc baror committed Dec 24, 2009
Showing with 10 additions and 6 deletions.
  1. +10 −6 doc/struct.html
View
16 doc/struct.html
@@ -692,21 +692,25 @@ <h4 id="from_hsla">from_hsla</h4>
<dl>
<dt>hue</dt>
- <dd>A value in the range [0.0, 360.0).</dd>
+ <dd>Either a String percentage (e.g., "25%") or a value in
+ the range [0.0, 360.0).</dd>
<dt>saturation</dt>
- <dd>A value in the range [0.0, 100.0].</dd>
+ <dd>Either a String percentage (e.g., "25%") or a value in
+ the range [0.0, 255.0].</dd>
<dt>lightness</dt>
- <dd>A value in the range 0.0, 100.0].</dd>
+ <dd>Either a String percentage (e.g., "25%") or a value in
+ the range [0.0, 255.0].</dd>
<dt>alpha</dt>
- <dd>A value in the range [0.0, 1.0], where 1.0 is fully
- opaque and 0.0 is fully transparent. This argument may be
- omitted. The default is 1.0.</dd>
+ <dd>Either a String percentage (e.g., "25%") or a value in
+ the range [0.0, 1.0], where 1.0 is fully opaque and 0.0 is
+ fully transparent. This argument may be omitted. The default
+ is 1.0.</dd>
</dl>
<h5>See also</h5>

0 comments on commit 830a1c2

Please sign in to comment.
Something went wrong with that request. Please try again.