Comments (4)
Hi there @MisterDA, thanks for submitting your question! This is a very interesting proposition, I think both techniques you mention are sensible. I guess it depends on your use case. Capturing the stream would allow you to broadcast anything that happens to the canvas (not just Atrament drawing), and crucially, the timing would be much more precise. With compression I think the bandwidth also wouldn't be a huge issue.
On the other hand, sending the stroke data would let you save the state on the client's device, allowing you to replay the drawing step by step or even modifying it.
If you can share more about your project, I'd be happy to think about it a bit more :)
from atrament.
On the other hand, sending the stroke data would let you save the state on the client's device, allowing you to replay the drawing step by step or even modifying it.
Does Atrament have a "real time" event watcher that would allow sending the drawing moves as they are made?
If you can share more about your project, I'd be happy to think about it a bit more :)
Of course, Iβd like to do a simple online Pictionary :) Atrament seems the nicest sketchpad lib out there.
from atrament.
Amazing! Atrament does indeed support stroke recording, see the section on Programmatic Drawing in the README. Let me know if you have any further questions :)
from atrament.
closing this as it seems the question has been answered π
from atrament.
Related Issues (20)
- Diagonal line from top left
- Bundling Atrament with vite shows warning: HOT 5
- Bundle Fill worker as separate package
- Add a "disable" option for drawing mode. HOT 1
- How to retain smoothing effect in SVG when programmatically creating SVG from stroke data HOT 2
- Sometimes drawing adds a line between beginning and end of stroke HOT 1
- Undo implementation HOT 5
- question about layers/transparency HOT 2
- Realtime draw updates HOT 4
- Different behavior when Inspect Element is open on Chrome HOT 4
- Online Demo Error HOT 1
- Bundle with Rollup HOT 1
- Test rendering with WebGL HOT 1
- QA with iPad + Apple Pencil and a similar Android tablet HOT 2
- Add support for advanced `Touch` properties HOT 1
- Adaptive stroke causes flood fill artifacts HOT 2
- Fix demo link in readme HOT 1
- Just add some text labelling for drawings HOT 3
- Can only undo for one step HOT 4
- Click creates a line in top left corner 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 atrament.