Jump to content
This forum will be closing down. Please move to the respective dedicated project forums.

PIXI.TextStyle gradient stroke and pattern fillStyle


Valery
 Share

Recommended Posts

Hi,

I just want to ask if PIXI developers going to support pattern fill style and gradient/pattern strokeStyle.

Canvas API supports it.

context.strokeStyle=color|gradient|pattern;

context.fillStyle=color|gradient|pattern;

also multi stroke will be nice to have.

Maybe somebody can recommend me a lib with such text effects for PIXI

 

Link to comment
Share on other sites

Oh, right, those PR's are about Text. Well, you have the answer: no one wants to help with Gradient.

Make your PR, but beware that Pixi is hybrid webgl-canvas renderer and features that work only for canvas always will be second-class citizens. Or even third, take a look at v5 branch `next`, it has separate Canvas renderer, called "Legacy".

UPD. Outdated, I thought you want Graphics :)

Link to comment
Share on other sites

When I saw the title I thought I'd done a pr for it at some stage!

It wasn't accepted into pixi official because there were worries about the text api becoming a bit crazy. The hope in the future is that you could pass perhaps a PIXI.Gradient into the fill properties, and thus no need for separate stop point and gradient type settings every time it's an option.

But I use the contents of that PR in my games on my own pixi fork :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...