Comments (4)
Looks like you have A LOT of points in your array. So the result is odd. Look how it works for a few number of points: http://konvajs.github.io/docs/sandbox/Quantum_Squiggle.html
from konva.
Thanks @lavrton your right they're is quite a few points in the array (hand drawn). I assumed the tension property would be useful for smoothing out and reducing the number of points in the shape. Do you have any suggestions on how that might be achieved? Thank you!
from konva.
My thoughts:
- Take, for example, every fifth point,
- Or use some more complex algorithms to detect "useful" points depend on their distances. (take new point if it is 5px away from previous point)
from konva.
@lavrton Appreciate the help, thanks!
from konva.
Related Issues (20)
- pixelized free draw HOT 4
- Feature Request - Export to PPT and Word file HOT 1
- loading json problems HOT 1
- Clip on group not working with width: 0 and height: 0 HOT 1
- Cannot override shape.rotation() in on transform event
- Can you create a brush tool like this one https://github.com/acamposuribe/p5.brush?
- Container ignores canvas width HOT 1
- Transformer handle drag issue: losing control after dragging and clicking on stage HOT 15
- Rotating the object image using the rotate function HOT 2
- Documentation for old releases and migration guide HOT 1
- comment typo HOT 1
- Can't cornerRadius and shadow be shared on the react-Konva Image component? HOT 1
- `canvas` dependency missing for node HOT 2
- Smooth Scrolling of Bitmap Render on LED Display HOT 3
- Feature Request: Transformer support custom create anchor HOT 3
- determine length of a line given its points and tension HOT 2
- What is the correct way to fire a custom event using react-konva HOT 1
- Rotated circle size HOT 1
- Event when you mousedown and move outside canvas. HOT 1
- Can we draw an un-closed ellipse like below? HOT 1
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 konva.