重なる部分だけ色を反転する方法
Flashでは重なる部分に対していろいろな画像効果をつけることができます。
こんな感じ
http://moeten.info/flex/20091107_blendTest/bin-release/main.html
すべてのソースはこちら
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" backgroundGradientAlphas="[1.0, 1.0]" backgroundGradientColors="[#FFFFFF, #989898]" viewSourceURL="srcview/index.html"> <mx:Script> <![CDATA[ import mx.effects.easing.Linear; ]]> </mx:Script> <mx:Parallel id="myAnim"> <mx:AnimateProperty property="rotationX" fromValue="0" toValue="360" repeatCount="0" duration="3000" easingFunction="Linear.easeInOut"/> <mx:AnimateProperty property="rotationZ" fromValue="0" toValue="360" repeatCount="0" duration="5000" easingFunction="Linear.easeInOut"/> </mx:Parallel> <mx:Label id="myText" x="110" y="110" text="萌" fontSize="120" color="#000000" cacheAsBitmap="true"/> <mx:Canvas creationCompleteEffect="myAnim" clipContent="false" y="170" x="170" blendMode="invert"> <mx:Canvas x="-80" y="-80" width="200" height="200" backgroundColor="#000000" /> </mx:Canvas> </mx:Application>