On Thursday 07 July 2005 02:08 am, Guillaume Laurent wrote:
> On Thursday 07 July 2005 02:35, D. Michael McIntyre wrote:
> > !     h += 180 % 360;
>
> That's not needed. From the QColor doc : "If you pass a too-big hue value,
> Qt forces it into range. Hue 360 or 720 is treated as 0; hue 540 is treated
> as 180".

Ah.  I ripped off a formula from someone who answered a color design question 
on a GNOME forum.  I originally thought your code was producing ugly results 
because it didn't have the % 360 in it, but once I saw it made no difference, 
I didn't take it back out.

I still don't like what I did come up with all that much.  I'm going to try a 
new idea here directly and keep screwing with this until I somehow make 
myself happy, no matter how obscenely long it takes.  It's stupid to spend 
all this time on four lines of code, but I'm a man on a crusade.

-- 
Michael McIntyre  ----   Silvan <[EMAIL PROTECTED]>
Linux fanatic, and certified Geek;  registered Linux user #243621
http://www.geocities.com/Paris/Rue/5407/
http://rosegarden.sourceforge.net/tutorial/


-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP,
AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar
_______________________________________________
Rosegarden-devel mailing list
[email protected] - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-devel

Reply via email to