[General] Feedback: Morphs Need setOpacity method

Robert Krahn robert.krahn at student.hpi.uni-potsdam.de
Thu Feb 26 09:12:26 CET 2009


Hi,

sorry I forgot to inform you. I already added the opacity setter/ 
getter to ImageMorph yesterday. You can now do stuff like:

x = new ImageMorph(new Rectangle(45, 45, 49, 49),  
URL.source.withFilename('mouse.png').toString());
x.openInWorld();
x.setOpacity(0.3)

Robert

On Feb 25, 2009, at 2:15 PM, Philip Weaver wrote:

> That was pretty simple to hack. But Lively still may need  
> morph.setOpacity().
>
> ImageMorph.subclass("enhanced.ImageMorph", {
> 	
> 	initialize: function($super, rectangle, imagePath) {
> 		
>         	$super(rectangle, imagePath);
>         	
> 		this.rawNode.style.setProperty('opacity', '0.2');
> 		this.setFillOpacity(0.0);
> 	}
> });
>
> _______________________________________________
> General mailing list
> General at livelykernel.sunlabs.com
> http://livelykernel.sunlabs.com/mailman/listinfo/general





More information about the lively-kernel mailing list