You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This fork of hexapipes implements clipping of pipes to the tile polygon. Additionally, the arms are drawn 20% longer to compensate for iOS line cap rendering issues. The idea is, draw past the edge of the tile and then clip.
Base hexapipes instead uses stroke-linejoin: round and extends the colored part out past the edge of the tile in order to "smudge" the subpixel line that will appear otherwise.
The smudge works better where it works, on the non-Penrose tiles and on operating systems besides iOS. The jury is still out on which is better for the cube grid.
Tile polygon clipping should be optional, and only enabled for Penrose and for iOS.
The text was updated successfully, but these errors were encountered:
Rats! Switching between the two drawing modes works fine, but there doesn't seem to be a good way to find out whether the Svelte page is running on iOS, partly because Svelte uses server-side rendering and so navigator.platform is unavailable.
Best solution I've found so far is svelte-device-detector, but it seems bulky to use for one bit of information, and it requires a lot of setup.
I'm also not happy with the effects of propagating this flag everywhere. I implemented getGridFlag() as a static method on the grid because the polygon needs to know whether polygon clipping is active. But now the polygons need to be initialized after the grids... yuck. At this point I wonder if it would be better to implement flags as a global function taking the grid type and flag.
(It's also debatable whether a whole flag mechanism is needed. I needed two of them, and think there may be future need for rendering flags. This is orthogonal and a smaller problem than the others.)
For these reasons, I've put this work on the clip-tile-polygon-flag branch, and I'm delaying this until PR time. Tile polygon clipping is always active on the p3 branch (and it's nice to see iOS rendering without glitches for all grids).
This fork of hexapipes implements clipping of pipes to the tile polygon. Additionally, the arms are drawn 20% longer to compensate for iOS line cap rendering issues. The idea is, draw past the edge of the tile and then clip.
This was originally proposed as gereleth#101
Base hexapipes instead uses
stroke-linejoin: round
and extends the colored part out past the edge of the tile in order to "smudge" the subpixel line that will appear otherwise.The smudge works better where it works, on the non-Penrose tiles and on operating systems besides iOS. The jury is still out on which is better for the cube grid.
Tile polygon clipping should be optional, and only enabled for Penrose and for iOS.
The text was updated successfully, but these errors were encountered: