Article located at: http://wmalone.com/bucket
williammalone / html5-paint-bucket-tool Goto Github PK
View Code? Open in Web Editor NEWPaint Bucket Tool created with HTML5 and JavaScript
Home Page: http://wmalone.com/bucket
Paint Bucket Tool created with HTML5 and JavaScript
Home Page: http://wmalone.com/bucket
Article located at: http://wmalone.com/bucket
Hi
Your script is very good. I was trying to use for my app but I am facing one problem. When I give the percentage to canvas and image which i am loading to fill then script do not work. Is there any possibility to use this script for responsive.
Thanks
hate creating issues for questions but no other way to do that on github (that I know of).. Have you done any work on getting this to work with IE8? I tried it with excanvas and it's a no go..
The script now only fills the all transparent space, but what should be changed to get it also working for any color that is clicked? Or for example, if I use white area's that must be filled. I think this is a minor tweak in the code, but can't find it.
Thanks in advance!
Need to give default color to canvas background. how can i do this?
in the createMouseEvents function we have
var mouseX = e.pageX - this.offsetLeft,
mouseY = e.pageY - this.offsetTop;
but, with the canvasDiv inside another div structure, like bootstrap container, the click offset i not in the right place.
There is a way to fix it?
I couldn't figure out.
Performance on iPad 2 mobile safari is not very good.
Is there any way to make it better?
Thanks a lot for the script and good explanation in your post.
In line 194 the y value will be incremented. However, this will result in a wrong position in the following pixelStack pushes at 208 and 220. Instead, the y should be incremented after checking for left/right.
Hi,
First of all, congratulations for your excellent job with this tool.
A simple question: how can I replace the "watermelon" picture file to a bigger and different one?
Thank you in advance.
Isaac
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.