I can think of three ways to achieve the goal, off the top of my head, no
code written:
1. manually construct a texture using the rendered text textures generated
by pyglet as the alpha channel in a texture with the gradient in the colour
components. Hard.
2. use a fragment shader to combine two textures - the text render and a
gradient texture. Easier.
3. use a fragment shader to generate the gradient colour to render on the
fly when rendering the text texture, modulated by the colour from the text
texture. Easiest.
Richard
On 21 October 2013 05:22, Akuji <[email protected]> wrote:
> It is not. My suggestion was simply to draw the label with an image
> editing program, save it as a texture or an image and load it into your
> program.
>
>
> On Sat, Oct 19, 2013 at 9:53 PM, Peter Varo <[email protected]> wrote:
>
>> And how exactly GIMP is related to Pyglet and pyglet.text.Label?
>>
>> --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "pyglet-users" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/pyglet-users/j2HCtvQ-BIg/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to
>> [email protected].
>> To post to this group, send email to [email protected].
>> Visit this group at http://groups.google.com/group/pyglet-users.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "pyglet-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/pyglet-users.
> For more options, visit https://groups.google.com/groups/opt_out.
>
--
You received this message because you are subscribed to the Google Groups
"pyglet-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pyglet-users.
For more options, visit https://groups.google.com/groups/opt_out.