Giter VIP home page Giter VIP logo

rocanvas's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

rocanvas's Issues

Pixel Artifacts

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!

Clear Canvas Changes Brush Shape

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.

判断加载css和图片的地址是出错

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

Error in fileLocation function

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.