On 11 Jul 2002 14:38:59 +0200, Dominik Vogt wrote: > > On Thu, Jul 11, 2002 at 12:19:00PM +0000, Mikhael Goikhman wrote: > > > > Of course keeping only 45 degrees like in non-colorset gradients is bad. > > Here is another formula for stretching DGradient that I had in mind > > when wrote the original message, it is none of the existing two: > > > > get_color_index(x, y, size_x, size_y, colors_num) > > { > > (x / size_x + y / size_y) * colors_num / 2 > > } > > > > This should produce something like: > > > > 11111....333 > > 111....3333: > > 1....3333::: > > ...3333::::5 > > .3333::::555 > > 333::::55555 > > That's what the menu code is doing.
I don't see that this is used anywhere although this is the most logical. > > Compare with the existing ones: > > > > 1111....3333 > > 1111....3333 > > ....3333:::: > > ....3333:::: > > 3333::::5555 > > 3333::::5555 > > That's what the Colorset code does. > > > 111....3333: > > 11....3333:: > > 1....3333::: > > ....3333:::: > > ...3333::::5 > > ..3333::::55 > > This is what the title drawing code does. This is what menu gradients do as well. Regards, Mikhael. -- Visit the official FVWM web page at <URL:http://www.fvwm.org/>. To unsubscribe from the list, send "unsubscribe fvwm-workers" in the body of a message to [EMAIL PROTECTED] To report problems, send mail to [EMAIL PROTECTED]