chromeos / low-latency-stylus Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
Javadocs are out of date, notably the LowLatencyStylusUtils class is missing from them.
First of @emilieroberts thank you so much for releasing this!
I would like to use this for a v2 rewrite I am doing of my very old-in-the-tooth Sketch Notes app.
I'm doing the new version in Flutter, so I guess I'll be building a Flutter plugin for this unless someone else has already done so?
I'm guessing that using the OpenGL api will be the best approach as I think that Flutter already uses this for other "hot path" Android integrations like camera viewfinder video feed and I have myself used the approach documented here on a past project showing a opengl visualisation written in c++ inside a Flutter app.
But I'm definitely no expert in this so any guidance on the best way to approach exposing this to Flutter would be most appreciated.
你好,实际测试中发现,有如下几个问题:
1、书写大量的笔记时候,在cpu driven这个模式下,会概率出现抬笔之后闪一下的现象,请问有办法规避吗?
2、长时间不书写,概率书写过程没有笔记,抬手之后才会出现笔记,请问有碰到这个问题吗?
3、在gpu driven模式下,一直书写圆形,可以看到拐弯的地方有明细的白点,就是渲染不完整,请问有办法规避吗?
谢谢,期待你的答复。
The low-latency implementation requires the Chrome OS - only low-latency library which relies on special classes in Chrome OS. The demo app should correctly check for support and fallback to a working, non-low-latency implementation on Android phones.
In the demo, using GPU acceleration, if you draw a very quick stroke, the touch events seem to get ahead of the render and the damage rect is incorrect. Future strokes correct this.
This is only the first stroke.
Currently the demo draws only lines. It might be useful to using a texture-based brush in the GPU demo.
This probably implies a bug in the damage rect logic in the GPU demo.
After drawing a stroke, drawing a new stroke will cause the very last point of the previous stroke to be redrawn. This is noticeable with alpha brushes and demonstrates a slight darkening.
I wonder if this is a possible point that was not added from the previous stroke? Or a leftover extra point added to accommodate GL_LINES.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.