Comments (4)
You may want to support 3 different sizes (one with multiple units):
- fraction of drawing size
- pixels
- absolute size (i.e. inches, cm, etc.)
Note that the conversions between any of them depend on how the size and resolution of the drawing is specified
from fig.
I have a question.
Let's say I have a circle centered at (0.5, 0.5) with a radius of 0.25.
I would assume that the radius would also be between 0 and 1.
But how would it be translated to, for example, an 800*600 canvas?
I don't think it really makes sense for the circle to become an ellipse.
Should it translate like this: Radius: 0.25 * (800+600)/2 = 175 pixels, or is there a better way?
from fig.
You may want to have distinction between size and position.
from fig.
So I should leave all size units as pixels?
from fig.
Related Issues (14)
- May ForImage utilize FIG features? HOT 2
- add topic tags HOT 1
- License HOT 1
- Area filling HOT 4
- fig_draw_pixel HOT 3
- support for image file drivers HOT 11
- Design of a plotting library HOT 8
- Colors HOT 6
- Segmentation faults HOT 8
- Create `drawing` class
- Handling optional properties of shapes HOT 1
- Primitives support HOT 1
- Miscellaneous HOT 1
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 fig.