Re: [AD] minor patches

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On 2005-11-27, Elias Pschernig <elias@xxxxxxxxxx> wrote:
> There fmod(angle), so there is no (reasonable) upper limit. In my
> case, I just had the angle as -360..360, and since the code already
> handles it, it made more sense to remove the ASSERT than doing
> just the same fmod() call myself before passing the arguments.
> 
> In the docs, can just change "angle is from 0..360" to "angle is
> in degree".

Index: docs/src/allegro._tx
===================================================================
--- docs/src/allegro._tx        (revision 5554)
+++ docs/src/allegro._tx        (working copy)
@@ -8365,9 +8365,10 @@
 @@void @rgb_to_hsv(int r, int g, int b, float *h, float *s, float *v);
 @eref exlights, exrgbhsv
 @shortdesc Converts color values between the HSV and RGB colorspaces.
-   Convert color values between the HSV and RGB colorspaces. The RGB values 
-   range from 0 to 255, hue is from 0 to 360, and saturation and value are 
-   from 0 to 1. Example:
+   Convert color values between the HSV and RGB colorspaces. The RGB values
+   range from 0 to 255, hue is an angle in degrees from 0 to 360 (you can
+   pass values out of this range), and saturation and value are from 0 to 1.
+   Example:
 <codeblock>
       int r, g, b;
       float hue, saturation, value;





Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/