On 11 Jul 2002 15:19:48 +0200, Dominik Vogt wrote:
> 
> On Thu, Jul 11, 2002 at 01:07:50PM +0000, Mikhael Goikhman wrote:
> > 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.
> 
> Try
> 
>   MenuStyle * MenuFace BGradient 3 red green
> 
> and you'll see it clear as day.

Yes, I see it clear as day that 45 degrees used, not 30 as in my formula.

> > > >   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.
> 
> Only when using colour sets, not with the native menu code.

No, this is what native menu DGradient does, not colorsets.
Unless we use different fvwm-s of course. :)

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]

Reply via email to