bennettfeely / clippy

Shape up your website with CSS clip-paths

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Request - Smooth edges

rknell opened this issue · comments

Hi,

Once I work out how to do it i might make a pull request, but if there is a way to smooth edges that would be great. My use case is a hexagon from a client ie:

screen shot 2015-07-24 at 4 44 27 pm

For the moment I used the site and will hand code the edges, but need to research the math to do it the right way

@rknell Quick and dirty Sass demo of how this would work http://codepen.io/thebabydino/pen/XbxKbL?editors=010 - it would be the same for any regular polygon, except $n wouldn't be 6 all the time anymore, but the number of edges of that particular polygon (and could be passed to the mixin as well)

Wow did you just whip that up for this? I need to sharpen my Sass skills! Thanks