Comments (3)
This is pretty much by design. Since compose
will interpret its arguments as a sort of S-expression, here it will try to make the first object in the array an internal and the rest it's children, but forms like Lines are always leaves in the tree.
I should have a more descriptive error than "no matching method" though.
from compose.jl.
I am baffled here... What does ...
mean here and how should it be used correctly?
I am having similar problems. I can create circles with vector arguments as the examples, but not lines, and that is quite unconfortable.
from compose.jl.
The ...
is regular Julia syntax. For example f(xs...)
is equivalent to f(xs[1], xs[2], xs[3])
if xs
has three elements. See http://julia.readthedocs.org/en/latest/manual/functions/#varargs-functions.
There are two ways to draw multiple lines. As multiple line
forms...
compose(context(), line([(0,0), (1,1)]), line([(0,1), (1,0)]), stroke("black"))
...or as a single vectorized line form
compose(context(), line([[(0,0), (1,1)], [(0,1), (1,0)]]), stroke("black"))
from compose.jl.
Related Issues (20)
- Compatibility with GeometryBasics? HOT 2
- Revise + Requires + Cairo + Fontconfig + Compose produces a pango error HOT 1
- ngon and xgon are transformed incorrectly in UnitBox? HOT 1
- Compose docs not deploying HOT 3
- tests fail on 1.6
- TagBot trigger issue HOT 9
- Guidance on a hyperbolic drawing extension
- `introspect` for graphs which are not trees
- Improve documentation for introspect HOT 1
- Document type hierarchy? HOT 1
- Make display in the REPL
- using Gadfly causes Method error in AlgebraOfGraphics.draw() HOT 2
- how to use SVG attributes?
- Dangerous pirate of `fill` function
- Inconsistencies when saving to a stretched image? HOT 2
- tests fail in windows 11 HOT 1
- Colors lost when using large vectors... HOT 8
- Rectangle rotation doesn't work HOT 3
- Bitmaps (at least, SVGs) do not rotate in a `context(..., rotation=Rotation(θ)`
- Unsupressable output to stdout(?)
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 compose.jl.