Comments (3)
The order looks to me like BOTTOM-LEFT
, BOTTOM-RIGHT
, TOP-RIGHT
, TOP-LEFT
. I assume you're using uv coordinates where the origin is in the bottom left most corner? Because the existing docs don't suggest that either are correct?
from atlaspack.
Assuming the origin is implied to be in the top left, which I guess makes sense for canvas 2d, then the order is TOP-LEFT
, TOP_RIGHT
, BOTTOM_RIGHT
, BOTTOM_LEFT
. That's really going to trip up someone looking for uv coordinates if they're assuming uv coordinate system.
from atlaspack.
This library was originally written for use in voxel-texture. The coordinates are based on what is used in voxel.js and three.js. I'm happy to take a patch for improvements though. Thanks!
from atlaspack.
Related Issues (12)
- Automatically grow the top atlas if an image cant fit
- index() does not work with rects or literals
- Move umd build to dist/atlaspack.js HOT 1
- Release Canvas Drawing HOT 1
- Introduce TypeScript version
- Invalid packing for long rectangles
- Split out bin packing algorithm HOT 1
- Add index method
- remove rectangle HOT 1
- this._uvcache is an array but used as an object? HOT 1
- not require use of browserify HOT 7
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 atlaspack.