Jump to content

Graphic arc update render issue


Kubenexion
 Share

Recommended Posts

Adding a line style solved it. Don't ask me why :mellow:

[...]
graphics.clear();
  
graphics.lineStyle(1, color);
graphics.beginFill(color, 1);
[...]

Edit: Actually lineStyle(); alone seems to suffice

Edited by ecv
oh!
Link to comment
Share on other sites

Hey, nice work. I have an addition to make to this, or rather a question. If I take your exact same code, how would i just instead of the color add a texture to it. Specifically a texture that was made out of a tiling sprite, like a hatch pattern. I can add a codepen but it is basically the same as OP's I just need a texture on it. 

I already tried and made a tiling sprite, 500x500 px, and then I applied it as a mask to the arc, but nothing shows up. Any examples on this?

 

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...