[Pharo-project] Have you played with Ameba?
"Load package" Gofer new squeaksource: 'DaliotsPlayground'; package: 'Ameba'; load. "run objects" x := Ameba example. "kill objects" x do: #delete. -- View this message in context: http://forum.world.st/Have-you-played-with-Ameba-tp3585624p3585624.html Sent from the Pharo Smalltalk mailing list archive at Nabble.com.
Cool. This is a good example of detecting rendering bugs in Morphic :) Try to add Amoeba>> drawOn: aCanvas aCanvas fillOval: (self bounds insetBy: 10) fillStyle: (self color alpha: 0.2) borderWidth: 2 borderColor: self color and you will see what i mean. On 9 June 2011 15:56, HwaJong Oh <daliot.oh@gmail.com> wrote:
"Load package" Gofer new     squeaksource: 'DaliotsPlayground';     package: 'Ameba';     load.
"run objects" x := Ameba example.
"kill objects" x do: #delete.
-- View this message in context: http://forum.world.st/Have-you-played-with-Ameba-tp3585624p3585624.html Sent from the Pharo Smalltalk mailing list archive at Nabble.com.
-- Best regards, Igor Stasenko AKA sig.
Hmm... I saw what you meant. Rectangle flicking behind the ovals! I guess there some bug drawing oval. neither border width = 0 nor alpha = 1.0 made any change. Best Regards HwaJong Oh -- View this message in context: http://forum.world.st/Have-you-played-with-Ameba-tp3585624p3585825.html Sent from the Pharo Smalltalk mailing list archive at Nabble.com.
On 9 June 2011 17:05, HwaJong Oh <daliot.oh@gmail.com> wrote:
Hmm...
I saw what you meant. Rectangle flicking behind the ovals! I guess there some bug drawing oval. neither border width = 0 nor alpha = 1.0 made any change.
No. The bug is in how morphic handling & redraws damaged areas. Or perhaps you are not reporting a morph's position changes correctly.. i'm not sure.
Best Regards HwaJong Oh
-- View this message in context: http://forum.world.st/Have-you-played-with-Ameba-tp3585624p3585825.html Sent from the Pharo Smalltalk mailing list archive at Nabble.com.
-- Best regards, Igor Stasenko AKA sig.
are you saying that i should tell the morphic system the geometric figure(an ellipse in this case) so it can refresh non-rectanglar area of its canvas? I've seen some protocols of modern operating system like macosx or windows to support non-rectangular views. Maybe I should use that protocol of morphic system if there is. Best Regards HwaJong Oh -- View this message in context: http://forum.world.st/Have-you-played-with-Ameba-tp3585624p3586809.html Sent from the Pharo Smalltalk mailing list archive at Nabble.com.
On 09.06.2011 17:23, Igor Stasenko wrote:
On 9 June 2011 17:05, HwaJong Oh<daliot.oh@gmail.com> wrote:
Hmm...
I saw what you meant. Rectangle flicking behind the ovals! I guess there some bug drawing oval. neither border width = 0 nor alpha = 1.0 made any change.
No. The bug is in how morphic handling& redraws damaged areas. Or perhaps you are not reporting a morph's position changes correctly.. i'm not sure.
Not a bug. When a Morph doesn't fill its entire bounds, it has to implement areasRemainingToFill: to correctly render Morphs beneath. See EllipseMorph for an example :) Cheers, Henry
Pay attention Utilities is deprecated But this is really fun :) Stef On Jun 9, 2011, at 3:56 PM, HwaJong Oh wrote:
"Load package" Gofer new squeaksource: 'DaliotsPlayground'; package: 'Ameba'; load.
"run objects" x := Ameba example.
"kill objects" x do: #delete.
-- View this message in context: http://forum.world.st/Have-you-played-with-Ameba-tp3585624p3585624.html Sent from the Pharo Smalltalk mailing list archive at Nabble.com.
Fun :-) Cool example! Alexandre On 9 Jun 2011, at 09:56, HwaJong Oh wrote:
"Load package" Gofer new squeaksource: 'DaliotsPlayground'; package: 'Ameba'; load.
"run objects" x := Ameba example.
"kill objects" x do: #delete.
-- View this message in context: http://forum.world.st/Have-you-played-with-Ameba-tp3585624p3585624.html Sent from the Pharo Smalltalk mailing list archive at Nabble.com.
-- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
participants (5)
-
Alexandre Bergel -
Henrik Sperre Johansen -
HwaJong Oh -
Igor Stasenko -
Stéphane Ducasse