[Ann] MorphicDraw

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

[Ann] MorphicDraw

Stephan Eggermont-3
To better understand Morphic, I've started writing a small application
that can draw shapes and connect them.

A pdf documenting what I've done is at
https://github.com/StephanEggermont/MorphicDraw

Code is on smalltalkhub,
StephanEggermont/MorphicDraw

Suggestions, fixes and improvements are welcome

Stephan


Reply | Threaded
Open this post in threaded view
|

Re: [Ann] MorphicDraw

Sven Van Caekenberghe-2
I have not yet read it, but this is very cool, well done !

This kind of material is very welcome.

> On 30 Apr 2015, at 01:57, Stephan Eggermont <[hidden email]> wrote:
>
> To better understand Morphic, I've started writing a small application that can draw shapes and connect them.
>
> A pdf documenting what I've done is at
> https://github.com/StephanEggermont/MorphicDraw
>
> Code is on smalltalkhub,
> StephanEggermont/MorphicDraw
>
> Suggestions, fixes and improvements are welcome
>
> Stephan
>
>


Reply | Threaded
Open this post in threaded view
|

Re: [Ann] MorphicDraw

Stephan Eggermont-3
On 30/04/15 10:10, Sven Van Caekenberghe wrote:
> I have not yet read it, but this is very cool, well done !
>
> This kind of material is very welcome.

Thanks.

I am pleasantly surprised by the small amount of code needed
to create something like this. Not so much by the effort in
finding out how to do these things. I found it necessary to
look in a Squeak image to see how other Morphs/Morphic
applications dealt with events, especially when tracking the
hand.

There are a few things that I've not yet solved:
- I've added #isMorphicDraw and #isMorphicDrawShape to make sure
   only MorphicDraw shapes don't escape from their panel, and
   no other morphs are added to the panel. Is there a more
   elegant way to achieve that?
- In MDCard I've added TextMorphs to the shape. They don't
   like right clicks. MNU TextMorph>>editView.
- How do I tell a PolygonMorph to use bezier curves with
   a starting direction for the end points?

Stephan


Reply | Threaded
Open this post in threaded view
|

Re: [Ann] MorphicDraw

philippeback
In reply to this post by Stephan Eggermont-3
Nice thing!

Phil

On Thu, Apr 30, 2015 at 1:57 AM, Stephan Eggermont <[hidden email]> wrote:
To better understand Morphic, I've started writing a small application that can draw shapes and connect them.

A pdf documenting what I've done is at
https://github.com/StephanEggermont/MorphicDraw

Code is on smalltalkhub,
StephanEggermont/MorphicDraw

Suggestions, fixes and improvements are welcome

Stephan







Reply | Threaded
Open this post in threaded view
|

Re: [Ann] MorphicDraw

Sean P. DeNigris
Administrator
In reply to this post by Stephan Eggermont-3
Stephan Eggermont wrote
- I've added #isMorphicDraw and #isMorphicDrawShape to make sure
   only MorphicDraw shapes don't escape from their panel, and
   no other morphs are added to the panel. Is there a more
   elegant way to achieve that?
Double-dispatch?
Cheers,
Sean