ImageMorph
Ned Konz
ned at bike-nomad.com
Tue Aug 27 15:36:44 UTC 2002
On Tuesday 27 August 2002 10:54 am, Alan Grimes wrote:
> I made my "AIWorld" class a child of "ImageMorph" With some hacking
> I was able to get rid of the crawling baby picture, but now I have
> a bigger problem. It seems the default behavior of ImageMorph is to
> set White==Transparent. This is a very bad behavior as it makes the
> damn thing invisable!!! =((( It would be a VeryGoodIdea(tm) to make
> the default appearance white==white. I have no need or desire for
> transperancy in my current application, or at least not at this
> level.
Use the Source, Luke!
I didn't know the answer to your question, so I did this:
* browse ImageMorph
* see drawOn: ; browse it
* see a conditional isOpaque. Browse local implementors.
* see that it's a property change; look to see if there is an
isOpaque: ; yes there is.
So try
self isOpaque: true
to get opacity.
--
Ned Konz
http://bike-nomad.com
GPG key ID: BEEA7EFE
More information about the Squeak-dev
mailing list
|