jdan / isomer

Simple isometric graphics library for HTML5 canvas
http://jdan.github.io/isomer
MIT License
2.87k stars 139 forks source link

how to wireframe 2d figures? #81

Closed deostroll closed 8 years ago

deostroll commented 8 years ago

Say I draw a triangle using a Path and 3 Points the triangle ends up filled.

How to have the triangle with no fill, just the wireframe?

whoeverest commented 8 years ago

I don't think you can do that right now. Looking at the source, I see that when a shape is drawn, it's stroke and fill color are always the same:

https://github.com/jdan/isomer/blob/master/js/canvas.js#L27

deostroll commented 8 years ago

@whoeverest can you explain briefly the math behind how we draw this stuff - isometric drawings...