Search the Community
Showing results for tags 'dashed strokes'.
-
I'm looking for a way of creating an enclosed perimeter with dashed border. It will contain only vertical and horizontal lines, but the path can be complex. For example let's just imagine I need to draw Tetris figures (no fill, just perimeter) with dashed line. As far as I can see in the documentation figure stroke and lines can only change color and alpha. Any suggestions of achieving the dashed line effect are appreciated. Thanks in advance.
- 2 replies
-
- phaser3
- dashed lines
-
(and 1 more)
Tagged with:
-
I need these features if I'm to use Pixi to be able to finish a js library I'm making, which uses primitives allot (e.x. Pixi Graphics). a ) or "dashed strokes" is straight forward, I just need to be able to created dashed strokes on PIXI Graphics objects (see here: http://www.rgraph.net/blog/2013/january/html5-canvas-dashed-lines.html ) b ) or "complex shapes" is just complex shapes as refered to here: http://www.goodboydigital.com/wp-content/uploads/2013/06/complexPolygon.png , which would be nice to have but is not as important as the others. c ) or "gradient fill", especially radient gradient fill, as seen here: http://www.html5canvastutorials.com/tutorials/html5-canvas-radial-gradients/ d ) or "compositing" (globalCompositeOperation), as explained here: https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Canvas_tutorial/Compositing And I'm wondering about three things: 1. Is any of this built into Pixi right now? 2. If not built in, is there a hack I can use? 3. If neither, will it be supported eventually? Thanks
-
- graphics
- primitives
-
(and 3 more)
Tagged with: