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
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 <stephan@stack.nl> 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
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
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 -- View this message in context: http://forum.world.st/Ann-MorphicDraw-tp4823049p4823402.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
Nice thing! Phil On Thu, Apr 30, 2015 at 1:57 AM, Stephan Eggermont <stephan@stack.nl> 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
participants (4)
-
phil@highoctane.be -
Sean P. DeNigris -
Stephan Eggermont -
Sven Van Caekenberghe