Re: I don't understand the colour definitions in view.lua

From: phayz <russelldicken....at.gmail.com>
Date: Tue, 6 Apr 2010 14:27:31 -0700 (PDT)

On Apr 6, 2:33 pm, Brian Schott <briancsch....at.gmail.com> wrote:
> I usually specify colors in the form 0xbbggrr where b, g, and r are the hex
> digits for blue, green, and red, respectively.Does this not work for anyone
> else?
>
> - Brian
>
> On Mon, Apr 5, 2010 at 3:52 PM, mitchell <mforal.n....at.gmail.com> wrote:
> > Russell,
>
> > > In files such as view.lua there are colour definitions such as the
> > > following:
>
> > > -- fold margin
> > > buffer:set_fold_margin_colour(1, 11184810) -- 0xAA | 0xAA << 8 | 0xAA
> > > << 16
> > > buffer:set_fold_margin_hi_colour(1, 11184810) -- 0xAA | 0xAA << 8 |
> > > 0xAA << 16
>
> > > To complete my preferred theme I want to change the above colours, but
> > > I simply don't understand the definition. I have no problem with the
> > > colour definitions which appear in lexer.lua, but am baffled by those
> > > above.
>
> > Color definitions according to Scintilla are
>
> > red | (green << 8) | (blue << 16)
>
> > When you get your RGB hex values, you can put them into something like
> > the Ruby interpreter to get a decimal value to give to ta. Lua doesn't
> > have that kind of syntax.
>
> > Mitchell
>
> > > Can anyone provide an explanation?
>
> > > Regards,
>
> > > Russell Dickenson

Brian,

I will try your option also, since I can read RGB colour
specifications more easily than those in decimal format.

Regards,

Russell Dickenson
Received on Tue 06 Apr 2010 - 17:27:31 EDT

This archive was generated by hypermail 2.2.0 : Thu 08 Mar 2012 - 11:42:06 EST