qrohlf / trianglify

Algorithmically generated triangle art
http://qrohlf.com/trianglify/
GNU General Public License v3.0
10.08k stars 669 forks source link

Responsive width #43

Closed rlavoie closed 9 years ago

rlavoie commented 9 years ago

What is the easiest way to have this scale full screen and update on resize

qrohlf commented 9 years ago

You will want to have some CSS to make the pattern scale, and some Javascript to regenerate the pattern regenerate when the resize is complete.

Here is how I'm doing it for https://qrohlf.com/trianglify: CSS JS

eliawk commented 8 years ago

Can i reload trianglify without React?

qrohlf commented 8 years ago

Yes. Just hook into the window resize event and re render Trianglify onto the same canvas with the new size attributes.

yaochiqkl commented 8 years ago

Thankyou~ Like it very much. :smile: If I translate "Readme.md" in Chinese and create a "readme-cn.md" ,will you approve my pull request?

qrohlf commented 8 years ago

It's awesome that you want to contribute to the project! Thanks!

However, since I do not speak Chinese, it will not be possible for me to keep a Chinese-language Readme up-to-date. Without an experienced bilingual co-maintainer, I'm afraid I can't accept PRs that add new documentation in any languages that I don't speak.

Sorry!