Fix the flag of China stars rotating issue #11#18
Fix the flag of China stars rotating issue #11#18pixelastic merged 1 commit intopixelastic:masterfrom tao-guo:master
Conversation
tao-guo
commented
May 10, 2017
- Create helper function to link polygen points.
- Draw five angle stars with polygen() for css clip-path.
1. Create helper function to link polygen points. 2. Draw five angle stars with polygen() for css clip-path.
|
Whoo, thanks.
|
|
Thanks for reviewing. Basically you need to make sure each polygon is a loop, and you go from one loop to another and will eventually come back. The first loop point and last loop point can be skipped. I just got the inspiration from this link: https://css-tricks.com/cutting-inner-part-element-using-clip-path/ |
|
I'm in the process of merging it. Just want to understand how it works first so I can re-use it on other flags. How did you get the angle values? Did you calculate them by hand or do you have construction cheet somewhere? |
|
Yes, I calculated myself based on the spec on wikipedia: tguo@ln-tguo:/tmp/mozilla_tguo0$ node
> Math.atan(3/5)/Math.PI*180+90
120.96375653207352 |

