On Fri, Jul 22, 2011 at 5:32 PM, Stephan Beal <[email protected]> wrote:
> On Fri, Jul 22, 2011 at 11:07 PM, Ross Berteig <[email protected]>wrote: > >> For skins that are dark text on white background, then using the >> existing MD5 hash on the tag name, picking a convenient three; >> > ... > > it would make an entertaining experiment, whether or not it turns out to be > useful in practice. > > An experimental change to implement this is on the server. Add the "brbg" query parameter to the timeline method to have the background color set by branch name. Add "ubg" to have the background color set by user name. Examples: http://www.fossil-scm.org/fossil/timeline?n=200&y=ci&brbg http://www.fossil-scm.org/fossil/timeline?n=200&y=ci&ubg 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: http://www.fossil-scm.org/fossil/artifact/506fc3a6b2808?ln=116,144 Feedback is encouraged. Remember this changes is experimental and might disappear at any moment! -- D. Richard Hipp [email protected]
_______________________________________________ fossil-users mailing list [email protected] http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

