Comments (5)
I figured out the problem is only on Android because the bucket tool acts like usual on computers.
from jspaint.
I haven't updated JS Paint any time recently, so it wouldn't be from a regression in my code.
The browser's Canvas API doesn't have any guaranteed precision, and some browsers or browser extensions randomize pixels as a security measure (called "farbling"). It's likely there's not much I can do here. I already have a threshold for the fill tool to avoid artifacts from these "farbling" security measures. It's possible increasing the threshold could fix this, although I wouldn't want it too high.
Did you draw something before drawing the shape you tried to fill? The pattern of the dots looks like it might be following the curve of some brush strokes (unlike canvas farbling which introduces more random noise).
from jspaint.
Well, i guess i've drawn stuff but i "selected all and deleted the stuff". All shapes i tried to draw (and fill) gave me those "farbled" white dots. Apparently i got weird grey colors on top of the brush. I used the paint drop on it: when i use a brush with that color, the brush is rainbow until i released the finger.
For the "completely filled" shape, i used a brush/polygon tool on that shape to hide the dots
from jspaint.
If the brush is showing as rainbow, that means it detected the current color as translucent, and (according to this line)
the alpha component was less than 253. Assuming you didn't select a translucent color, that should be 255.
As noted in a comment in the code there, I've ran into a similar thing in Firefox and so added a slight threshold.
I could increase all the hacky thresholds in the app, but I don't really want to do that.
Maybe one day I'll rewrite the app so the canvas element is only used for output, and not for storing the state of the image, so it never needs to get pixels from the canvas context, and that will eliminate these issues.
For now I think you'll have to find another app or another browser, sorry.
from jspaint.
Okay, thanks!
I'm gonna use jspaint on my PC until the bug gets fixed
See you!
from jspaint.
Related Issues (20)
- Unable to Rotate By Angle HOT 2
- "Width" field is not focused and selected when opening Image -> Attributes... HOT 3
- How to open multiple windows in electron macOS? HOT 2
- why does electron app make requests to internet when started? HOT 4
- i cant draw after making 1 brushstroke or anything on the canvas HOT 3
- Pixel data offset field from the BMP header is ignored
- The Recover Document (Woah!) pop-up still occurs despite the following HOT 2
- Blended/Anti-Aliased edges on rectangle tool HOT 4
- every stroke i make does not save on the canvas and keeps deleting the previous one HOT 31
- [feature] comic creator
- Shortcut keys?
- Pasted screenshots show up twice as big (HiDPI Retina screenshot) HOT 1
- Error when changing eraser size with keyboard
- Internal copy not working on macOS Safari
- Error trying to paste a screenshot on Windows 11
- Errors trying to paste/open an SVG file
- Shift+Insert, Ctrl+Insert, and Ctrl+Delete shortcuts throw errors HOT 1
- .bmp file saves incorrectly
- [feature] Windows 3.1 style tools 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 jspaint.