[Pharo-project] Pharo and the ST-80 classes
I went to use a "Line" today and found it wasn't in Pharo. Apparently this is part of the ST80-* (ST80-Paths) classes which aren't carried over to Pharo. So...how do I draw a line on a morph (without creating another morph)? ===Blake===
Seems like I ought to be able to load in the ST80 classes but I don't see anything on Monti/Meta. On Sat, May 12, 2012 at 3:30 PM, blake <dsblakewatson@gmail.com> wrote:
I went to use a "Line" today and found it wasn't in Pharo.
Apparently this is part of the ST80-* (ST80-Paths) classes which aren't carried over to Pharo.
So...how do I draw a line on a morph (without creating another morph)?
===Blake===
On 13 May 2012 00:30, blake <dsblakewatson@gmail.com> wrote:
I went to use a "Line" today and found it wasn't in Pharo.
Apparently this is part of the ST80-* (ST80-Paths) classes which aren't carried over to Pharo.
So...how do I draw a line on a morph (without creating another morph)?
Morphic is much much younger than ST-80. Create new morph class, override drawOn: method use canvas line: pt1 to: pt2 color: c & friends.
===Blake===
-- Best regards, Igor Stasenko.
Thanks, Igor! On Sat, May 12, 2012 at 7:52 PM, Igor Stasenko <siguctua@gmail.com> wrote:
On 13 May 2012 00:30, blake <dsblakewatson@gmail.com> wrote:
I went to use a "Line" today and found it wasn't in Pharo.
Apparently this is part of the ST80-* (ST80-Paths) classes which aren't carried over to Pharo.
So...how do I draw a line on a morph (without creating another morph)?
Morphic is much much younger than ST-80.
Create new morph class, override drawOn: method
use canvas line: pt1 to: pt2 color: c
& friends.
===Blake===
-- Best regards, Igor Stasenko.
Do you need it for a model or for drawing? Because for drawing there is LineMorph stef
I went to use a "Line" today and found it wasn't in Pharo.
Apparently this is part of the ST80-* (ST80-Paths) classes which aren't carried over to Pharo.
So...how do I draw a line on a morph (without creating another morph)?
===Blake===
On Sun, May 13, 2012 at 12:49 AM, Stéphane Ducasse <stephane.ducasse@inria.fr> wrote:
Do you need it for a model or for drawing? Because for drawing there is
    LineMorph
stef
I'm not sure what you mean by "a model". I've never been really good with Morphic, so when I started this current project and needed to render some simple graphics I went back to Stephen Wessel's Laser Game tutorial and noted he was using Line and some other ST80 classes. I know about LineMorph but I was shying away from it. When I think of a morph, I think of an object with all these propertiesâproperties that I don't want. (One of the things I love about Pharo is that I'm not always accidentally activating the damn halos!) What I like about the Line class is that I understand it: It's a collection of points and a form to draw them on. Simple.
participants (3)
-
blake -
Igor Stasenko -
Stéphane Ducasse