pimteam / rocanvas Goto Github PK
View Code? Open in Web Editor NEWJavascript Library For Creating Interactive Drawing Boards
Home Page: http://re.trotoys.com/article/rocanvas/
License: MIT License
Javascript Library For Creating Interactive Drawing Boards
Home Page: http://re.trotoys.com/article/rocanvas/
License: MIT License
Not sure how to describe the bug exactly, but it seems that there are pixel bits being leftover sometimes when a freehand line is drawn. Especially on the end of drawn line, there tend to be these artifact blank bits, but also sometimes in the middle of a freehand line they show up. These artifacts seem to be a blank diameter line down the middle of the freehand drawtool's pixels. If you resize the shape to 100 and draw one circle, you can clearly see what I'm talking about. When you draw too quickly with the freehand tool these artifacts also appear on the edge of the lines (in what appears to be a non-rendered portion of the tool shape).
Amazing script though!
After playing around with this script for a bit, I found another bug.
If you clear the canvas, the brush will change to a line, and when dragged will become a dragged (sometimes spinning) rectangle instead of circle.
I have a feeling this is likely tied to the other error (line artifact in the middle of the circle and leftover remnants of incomplete shapes). If the original circle is being generated by a 360 twisted line, then this bug simply means that the line (after the canvas has been cleared) no longer rotates 360 degrees.
rocanvas.js文件的第333行判断条件写错了,导致加载图片的地址出错;
''' if(scripts[i].src && scripts[i].src.indexOf("rocanvas.js">0)) '''
--->>
''' if(scripts[i].src && scripts[i].src.indexOf("rocanvas.js")>0) '''
and thanks for your project
There is a typo in the fileLocation function, at line 333:
It says:
if(scripts[i].src && scripts[i].src.indexOf("rocanvas.js">0))
Should say:
if(scripts[i].src && scripts[i].src.indexOf("rocanvas.js")>0)
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.