Hi,

the contexts in Compose form a tree, so you need to combine the points you want 
in the same color in a unique context, and then compose each of these contexts 
with the "main" context.

You can see an example of this here:

  https://github.com/rened/ImagePlot.jl/blob/master/src/ImagePlot.jl#L41-L52

Cheers,

Rene



Am 11.05.2015 um 03:19 schrieb Peter Kristan <[email protected]>:

> 
> compose(context(),
>         circle([0.25, 0.5, 0.75], [0.25, 0.5, 0.75], [0.1]),
>         fill([LCHab(92, 10, 77), LCHab(68, 74, 192), LCHab(78, 84, 29)]))
> 
> This code draws 3 circles in their respective colors defined in fill()
> 
> The code bellow is what I tried, but all the circles turned out green. How 
> would I make it so that that first circle would be bisque, the second red, 
> and the third green?
> 
> circles = 
> [circle(717.0,469.0,100.0),circle(387.0,265.0,100.0),circle(737.0,25.0,100.0)]
> fills = [fill("bisque"), fill("red"), fill("green")]
> 
> composition = compose(context(units=UnitBox(0,0,1000,1000)),
>         circles...,
>         fills...
>         )
> 
> Something like this, only from arrays:
> compose(context(),
>         circle([0.25, 0.5, 0.75], [0.25, 0.5, 0.75], [0.1]),
>         fill([LCHab(92, 10, 77), LCHab(68, 74, 192), LCHab(78, 84, 29)]))
> 
> 
> Thanks!

Reply via email to