roassal problem: ellipse border color does not work

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

roassal problem: ellipse border color does not work

Tudor Girba-2
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:
Inline image 1

Cheers,
Doru

--

"Every thing has its own flow"

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: roassal problem: ellipse border color does not work

Peter Uhnak
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 <[hidden email]> 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:
Inline image 1

Cheers,
Doru

--

"Every thing has its own flow"

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev



_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: roassal problem: ellipse border color does not work

Tudor Girba-2
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 <[hidden email]> 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 <[hidden email]> 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:
Inline image 1

Cheers,
Doru

--

"Every thing has its own flow"

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev



_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev




--

"Every thing has its own flow"

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: roassal problem: ellipse border color does not work

Peter Uhnak
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...

Peter

On Sun, Sep 6, 2015 at 4:03 PM, Tudor Girba <[hidden email]> 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 <[hidden email]> 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 <[hidden email]> 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:
Inline image 1

Cheers,
Doru

--

"Every thing has its own flow"

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev



_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev




--

"Every thing has its own flow"

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev



_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: roassal problem: ellipse border color does not work

Nicolai Hess


2015-09-06 16:20 GMT+02:00 Peter Uhnák <[hidden email]>:
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 <[hidden email]> 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 <[hidden email]> 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 <[hidden email]> 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:
Inline image 1

Cheers,
Doru

--

"Every thing has its own flow"

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev



_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev




--

"Every thing has its own flow"

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev



_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev



_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: roassal problem: ellipse border color does not work

abergel
I will have a look at this asap

Alexandre
-- 
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.



On Sep 6, 2015, at 1:01 PM, Nicolai Hess <[hidden email]> wrote:



2015-09-06 16:20 GMT+02:00 Peter Uhnák <[hidden email]>:
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 <[hidden email]> 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 <[hidden email]> 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 <[hidden email]> 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

--

"Every thing has its own flow"

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev



_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev




--

"Every thing has its own flow"

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev



_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: roassal problem: ellipse border color does not work

abergel
In reply to this post by Nicolai Hess
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.
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  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.



On Sep 6, 2015, at 1:01 PM, Nicolai Hess <[hidden email]> wrote:



2015-09-06 16:20 GMT+02:00 Peter Uhnák <[hidden email]>:
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 <[hidden email]> 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 <[hidden email]> 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 <[hidden email]> 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

--

"Every thing has its own flow"

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev



_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev




--

"Every thing has its own flow"

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev



_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev