roipeker / draw-lib Goto Github PK
View Code? Open in Web Editor NEWDraw is a Starling powered Graphics implementation.
License: MIT License
Draw is a Starling powered Graphics implementation.
License: MIT License
Hello Rodrigo and WOW this is fantastic!
I started off ( a long time ago) to help maintain the old Graphics Extension but this seems a lot better. Wonderful work!
I am noticing what must be a bug, though, and I'll try to describe it here, with the best repro I have so far:
TO make the repro case, I did this:
Modify the DemoPixiDynamic sample to 1) Not draw any initial shapes. 2) Only draw random lineTo rather than cubicCurveTo
This way, I will just get straight lines from random positions.
When I add a trace in renderMesh() of the Draw class, like this:
trace("renderMesh: vertexData.numVertices: " , vd.numVertices);
around line 170, and start clicking, I get the following:
renderMesh: vertexData.numVertices: 4 (After one lineTo)
renderMesh: vertexData.numVertices: 12 (After two lineTos etc)
renderMesh: vertexData.numVertices: 24
renderMesh: vertexData.numVertices: 40
renderMesh: vertexData.numVertices: 60
renderMesh: vertexData.numVertices: 84
renderMesh: vertexData.numVertices: 112
renderMesh: vertexData.numVertices: 144
renderMesh: vertexData.numVertices: 180
renderMesh: vertexData.numVertices: 220
renderMesh: vertexData.numVertices: 264
renderMesh: vertexData.numVertices: 312
renderMesh: vertexData.numVertices: 364
renderMesh: vertexData.numVertices: 420
renderMesh: vertexData.numVertices: 480
renderMesh: vertexData.numVertices: 544
renderMesh: vertexData.numVertices: 612
renderMesh: vertexData.numVertices: 684
renderMesh: vertexData.numVertices: 760
renderMesh: vertexData.numVertices: 840
renderMesh: vertexData.numVertices: 924
renderMesh: vertexData.numVertices: 1012
renderMesh: vertexData.numVertices: 1104
renderMesh: vertexData.numVertices: 1200
renderMesh: vertexData.numVertices: 1300
renderMesh: vertexData.numVertices: 1404 (Here, the number of vertexData increases with over 100 for just one LineTo , from 1300 to 1404 )
I am looking into it currently, as I find myself with some time on my hands and I really love Starling and this kind of functionality, but I thought I'd mention it here.
I can't easily see why this would be happening, but I'm sure it's some silly mistake :)
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.