lifelike / hexmapextension

Inkscape extension for creating hex grids suitable for boardgame maps.
129 stars 16 forks source link

Spiked Caltrops Possible? #30

Open Mikirk opened 5 years ago

Mikirk commented 5 years ago

I prefer spiked, or sharp endcaps on the line segments (i.e., thick at vertices, sharpening or tapering to a point as they finish, say at 10 or 15%). Is that a possibility? or is it doable in Illustrator in post? (I was only able to achieve it clumsily, with spikes often in wrong direction.)

Mikirk commented 5 years ago

Caltrop_testspikes

lifelike commented 5 years ago

This is a great idea. Having them taper off looks better imo, so I can see having an option to set the end-width in %. Unfortunately from what I can tell the only way to do that would be to change all lines to paths (polygons) and then calculate the correct position of all vertices?

Perhaps as a quick solution making sure that all the lines are pointing in the correct direction would allow for a workaround by selecting everything in the layer and using the triangle-out feature in Inkscape (that, if I understand correctly, as a side-effect will change all lines to be paths?).

lifelike commented 5 years ago

It might be possible to do something similar (that might look even better?) by changing all the little lines to paths and then subtract all the circles from the circles layer (possibly after slightly modifying their size?).

Mikirk commented 5 years ago

Hello! Any progress on this front? ( I have been off being distracted, but still very excited and hoping for a workable solution. )

lifelike commented 5 years ago

I can change the direction of all the lines, as mentioned. In fact I already did and can push that change to GitHub in a moment. But a proper solution, changing all the lines to tiny polygons, that is not high on my priority list right now. I might get around to it eventually, but it is more likely to happen if someone else implements it. Should be easy to spot the place to add it (in add_hexline) and add a checkbox in the config to select if the lines should be tapered or not.