translucent and transparent in B3d

Martin Kuball MartinKuball at web.de
Sun Aug 10 14:00:35 UTC 2003


Hi!

In B3DSceneMorph>>renderOn: the color of the morph is checked for 
translucency:

	(color isTransparent or: [color isTranslucent]) 
		ifTrue: [myRenderer restoreMorphicBackground: self bounds under: self].

If I understand this, translucency includes transparency. So the explicit 
test for the latter is not necessary, isn't it?

Som lines later:

	color isTransparent 
		ifFalse:[myRenderer clearViewport: color].

Should't this be "color isTranslucent" here?

Martin



More information about the Squeak-dev mailing list