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

From: Brian Schott <briancsch....at.gmail.com>
Date: Mon, 5 Apr 2010 21:33:27 -0700

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
>
> --
> You received this message because you are subscribed to the Google Groups
> "textadept" group.
> To post to this group, send email to textadept.at.googlegroups.com.
> To unsubscribe from this group, send email to
> textadept+unsubscribe.at.googlegroups.com<textadept%2Bunsubscribe.at.googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/textadept?hl=en.
>
>
Received on Tue 06 Apr 2010 - 00:33:27 EDT

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