Hi!
Well, it all depends what the circle actually mean. You can simply draw it like that:
v := RTView new.
circle := (RTEllipse new size: 80; borderColor: Color black; borderWidth: 0.014; color: Color transparent) element. ex1 := RTBox element. ex2 := RTBox element. ex1 translateTo: -40 @ 0. ex2 translateTo: 40 @ 0. line := (RTLine new width: 2; color: Color black) edgeFrom: ex1 to: ex2. v add: circle; add: line.
lbl1 := (RTLabel text: 5) element. lbl2 := (RTLabel text: '3.1k') element. v add: lbl1; add: lbl2. lbl1 translateTo: 0 @ -20. lbl2 translateTo: 0 @ 20.
v
But I am sure this is not what you want. How many circle do you plan to have? What are the variation point of a visual element? Color? Size?
A proper implementation will likely be based on a dedicated builder.
Cheers, Alexandre
On May 21, 2015, at 2:24 PM, Offray Vladimir Luna Cárdenas offray@riseup.net wrote:
Hi Alexandre :),
We're trying to create, programmaticaly in Roassal, something like the attached image (which, by the way was created with the powerful DrGeo). Forget about the points in red. I only want to create a circle with a horizontal line in the middle and two text on each half. Eventually I would like to change the contrast of the text with the background of the circle's filling, but that could be a second exercise.
Cheers,
Offray
El 19/05/15 a las 07:08, Alexandre Bergel escribió:
Hi Offray!
I am not sure to understand. How we can help you?
Alexandre
On May 17, 2015, at 3:35 PM, offray@riseup.net wrote:
Hi,
With some friends, we're playing with the idea of using epicycles [1] for a visualization. So far, so good and we have some beta code script at [2]. We would like to put a pair of numbers inside the epicycle. So the question is: How can we add a horizontal line wich divides the epicycle in the middle and how can we put a number on each part?
[1] http://en.wikipedia.org/wiki/Deferent_and_epicycle [2] http://ws.stfx.eu/2S8R9YAGSJHO
Thanks,
Offray _______________________________________________ Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
<epycicleNumbered.png>_______________________________________________ Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev