At 04:25 PM 7/22/2011, Richard Hipp wrote: >An experimental change to implement this is on the server... > >I tried Ross's proposed color choosing algorithm but it didn't >work out. So instead I used the hash to select a Hue in an HSV >color space, held the S and V fixed, and mapped the result into >RGB. The color chooser code is here, if you are interested:
I hadn't taken time to see how muddy the result was, so I'm not surprised if my quick and dirty approach didn't look pretty out of the box. Your HSV method looks quite hopeful. I also like the idea of marking users instead of branches, although my personal use of Fossil only has a few distinct users. Using a hash to pick H with S and V held constant should work a lot better than computing RGB directly from hash bits. Even better might be to include at least one other SV pair that is distinctly different from the existing choice. I get the impression that your calculation picks hues that are too close together... it might be better to quantize it more to keep them further separated. >.... >Feedback is encouraged. Remember this changes is experimental >and might disappear at any moment! Overall, I really like the effect. I think that to handle a skin with light text on dark backgrounds, you might want a control or view that simply ignores the capability. Otherwise, it is possible that doing exactly this but with much darker values and increased saturation would work out ok. Since the text color is controlled by the CSS which fossil almost certainly does not parse, you probably would need a separate configuration option somewhere to choose between "dark" and "light" automatic color choices. Ross Berteig [email protected] Cheshire Engineering Corp. http://www.CheshireEng.com/ +1 626 303 1602 +1 626 351 1590 FAX _______________________________________________ fossil-users mailing list [email protected] http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

