Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Allow drawing of proper paths?

edited September 2013 in Suggestions Posts: 11

I am wondering if proper paths are in the Codea roadmap? I'd love to see them.

I've been able to simulate a path with a table of vectors drawn in a loop, but this has a number of drawbacks. For one thing, if the stroke color is somewhat transparent then the joints between each line become apparent. Also, the resulting shapes can't be filled.



  • Yes, there have been requests for actual polygons for a while.

  • Jmv38Jmv38 Mod
    Posts: 3,295

    If you download my game Kraizy Circles from my web repo you will see an example of paths implemented with a mesh + a circle texture.

  • Posts: 2,161

    I have quite a few examples of drawing paths with meshes. Possibly the simplest is the B├ęzier shader, which is at (I use toadkick's cmodule code for my libraries, to use as standalone you need to remove the --[==[ and --]==] from the beginning and the end, and remove the cmodule.gexport stuff at the end).

    It doesn't do fills, though.

  • efcefc
    Posts: 11

    Wow, some great ideas here. Meshes look like the next thing I should be exploring. Thanks!

Sign In or Register to comment.