Hi Nicolai!
Thanks for having written the EllipseMorph>>#drawOnAthensCanvas:. It was a great
inspiration!
Ellipse have now a border that is what one would expect!
You need to update Trachel.
Here is a small example that let you resize different shapes. The border behaves
accordingly:
And the code is:
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
| v g |
v := RTView new.
g := RTGroup new.
g
add: (RTBox new
size: 100;
borderColor: Color black;
borderWidth: 1;
element);
add: ( RTRoundedBox new
size: 50;
borderRadius: 20;
borderColor: Color black;
borderWidth: 1;
element);
add: (RTEllipse new
width: 100;
height: 30;
borderColor: Color black;
borderWidth: 1;
element).
v addAll: g.
RTGridLayout on: g.
g @ RTDraggable.
g @ RTResizable.
v @ RTZoomableView.
^ v
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Doru’s example slightly adapted:
Cheers,
Alexandre
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel
On Sep 6, 2015, at 1:01 PM, Nicolai Hess
<nicolaihess(a)web.de> wrote:
2015-09-06 16:20 GMT+02:00 Peter Uhnák <i.uhnak(a)gmail.com
<mailto:i.uhnak@gmail.com>>:
There were problems with the border having uneven size for ellipses (thicker on the
shorter side and thinner on the longer side (or maybe the other way around)).
I'll try to dig up the mails later, because it was discussed last year I think...
You have to change the consturction of the ellipse. Instead of drawing a non-uniform
scaled circle, build the ellipse from
multiple arcs. (See how Athens-Morphic constructs the ellipse path for
EllipseMorph>>#drawOnAthensCanvas: )
Peter
On Sun, Sep 6, 2015 at 4:03 PM, Tudor Girba <tudor(a)tudorgirba.com
<mailto:tudor@tudorgirba.com>> wrote:
Funny. It appears like the border of an ellipse is proportional to its size :). Do you
know why?
Doru
On Sun, Sep 6, 2015 at 3:35 PM, Peter Uhnák <i.uhnak(a)gmail.com
<mailto:i.uhnak@gmail.com>> wrote:
It works but there are issues with border width... I don't quite remember what was
the original problem (I think that it doesn't scale properly or something like that).
This was discussed several times over the mailing list, I should probably dig it up.
~~~~~~~~~~~~~~~~~~~~~
|v|
v := RTMondrian new.
v shape ellipse.
v shape borderColor: Color red.
v shape borderWidth: 0.3.
v nodes: #(1 2 3).
v
~~~~~~~~~~~~~~~~~~~~~
Peter
On Sun, Sep 6, 2015 at 1:32 PM, Tudor Girba <tudor(a)tudorgirba.com
<mailto:tudor@tudorgirba.com>> wrote:
Hi,
The ellipse border color does not seem to work. Is this an Athens problem, or just a
missing implementation? Could someone take a look?
For example:
view := RTMondrian new.
view shape ellipse borderColor: Color red.
view nodes: #( 1 2 3 ).
view
Produces:
<ellipse-border-color.png>
Cheers,
Doru
--
www.tudorgirba.com <http://www.tudorgirba.com/>
"Every thing has its own flow"
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch <mailto:Moose-dev@iam.unibe.ch>
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
<https://www.iam.unibe.ch/mailman/listinfo/moose-dev>
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch <mailto:Moose-dev@iam.unibe.ch>
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
<https://www.iam.unibe.ch/mailman/listinfo/moose-dev>
--
www.tudorgirba.com <http://www.tudorgirba.com/>
"Every thing has its own flow"
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch <mailto:Moose-dev@iam.unibe.ch>
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
<https://www.iam.unibe.ch/mailman/listinfo/moose-dev>
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch <mailto:Moose-dev@iam.unibe.ch>
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
<https://www.iam.unibe.ch/mailman/listinfo/moose-dev>
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev