简体   繁体   English

我可以对MovieClip进行颜色转换,但可以排除特定的子组件吗?

[英]Can I colorTransform a MovieClip but exclude specific sub-components?

Scenario: 场景:

I have floating islands that move around in odd paths. 我有漂浮的小岛,它们以奇怪的路径四处走动。 There are torches (nested movieClips) mounted on some of the islands. 在某些岛上装有火把(嵌套电影剪辑)。 Sometimes a weather effect will change the color and brightness of the islands. 有时,天气影响会改变岛屿的颜色和亮度。 Is there a way to change the brightness of the islands (parent movieClips) without also changing the brightness of the torches (child movieClips)? 有没有办法改变孤岛(父movieClips)的亮度,而又不改变手电筒(子movieClips)的亮度?

=================================================== ================================================== =

One solution that I can conceive is independently color adjusting all the child objects of each movieClip, instead of adjusting the parent object. 我可以想到的一种解决方案是独立调整每个movieClip的所有子对象的颜色,而不是调整父对象。 This seems highly inconvenient and unnecessary though, so any thoughts would be appreciated. 不过,这似乎非常不方便且不必要,因此请多加考虑。

No, if you need to exclude some parts of a movie clip (or other DisplayObjectContainer ) from alteration applied to their parent, you need to rework your container structure. 不可以,如果您需要将影片剪辑(或其他DisplayObjectContainer )的某些部分从应用于其父对象的更改中排除,则需要重新设计容器结构。 You can try applying a reverse operation to selected children (say, inverse color transformation), but note that not every transformation can be correctly inversed. 您可以尝试对选定的子项应用反向操作(例如,反向颜色转换),但是请注意,并非每个转换都可以正确地反向。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM