Comments (5)
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
from trianglify.
Can i reload trianglify without React?
from trianglify.
Yes. Just hook into the window resize event and re render Trianglify onto the same canvas with the new size attributes.
from trianglify.
Thankyou~ Like it very much. 😄
If I translate "Readme.md" in Chinese and create a "readme-cn.md" ,will you approve my pull request?
from trianglify.
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!
from trianglify.
Related Issues (20)
- Cannot Install on Windows through NPM HOT 2
- Error running install script for optional dependency HOT 2
- Error with newer versions of canvas: Object.render_png HOT 1
- Where is the 2.0 code? HOT 1
- Trianglify "next" milestone
- The canvas module is outdated HOT 2
- Option to Choose Color Format HOT 2
- Non-minified javascript bundle creation? HOT 4
- Feature Proposal: Web Worker support/example
- Upload prebuilt .zip files to the Releases tab
- Trianglify not working in iOS 10 on ipad HOT 3
- colours more random? HOT 1
- Passing destSVG to pattern.toSVG() does not work; implementation is missing 🤦♂️ HOT 5
- Uncouple from node-canvas. HOT 12
- Upgrade cell generation algorithm
- CLI version of trianglify
- Error in production on vue, vite HOT 1
- replacement of trianglify.io HOT 1
- Charge removal
- Unable to install trianglify on node 8.11.4 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from trianglify.