|
Re: Fading a PNG: msg#00144lang.smalltalk.squeak.beginners
Following Bert's advice, I see that HaloMorph overrides #drawSubmorphsOn: and calls its Canvas using asAlphaBlendingCanvas. That seems like a good place to start. I tried subclassing ImageMorph and adding this method: drawOn: aCanvas ^ super drawOn: (aCanvas asAlphaBlendingCanvas: alphaValue). Unfortunately, it didn't display anything at all. I tried alpha values of 0.5 and 1.0. If I remove the alpha blending stuff, and simply call: ^ super drawOn: aCanvas. it works like a normal ImageMorph, so at least I know it isn't broken someplace else. Any suggestions on how to get asAlphaBlendingCanvas to blend some alphas? On 4/23/07, Steven Greenberg <greenbes@xxxxxxxxxxxxxxxxxxxx> wrote: Thanks for the pointer! I didn't try that code in the workspace, but if you enable "haloTransitions" using the Preferences browser then the halos fade in and out. _______________________________________________ Beginners mailing list Beginners@xxxxxxxxxxxxxxxxxxxxxxxxxx http://lists.squeakfoundation.org/mailman/listinfo/beginners
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Fading a PNG, Steven Greenberg |
|---|---|
| Next by Date: | Re: Fading a PNG, Bert Freudenberg |
| Previous by Thread: | Re: Fading a PNG, Steven Greenberg |
| Next by Thread: | Re: Fading a PNG, Bert Freudenberg |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |