开发者

Regarding fullscreen color-shifting gradient

开发者 https://www.devze.com 2023-01-05 18:21 出处:网络
Hey there, i am quite new to ActionScript, could you describe how to set up 2 pre selected colors to tween a gradient to instead of \"random\" ones. My Goal would 开发者_运维百科be to use this class a

Hey there, i am quite new to ActionScript, could you describe how to set up 2 pre selected colors to tween a gradient to instead of "random" ones. My Goal would 开发者_运维百科be to use this class as a dynamic background creater and i would like to have different gradient backgrounds on different pages.

thanks in advance!


I'm not sure exactly what you want, but using the beginGradientFill and drawRect functions you should be able to do it. If you want to draw a full screen gradient that changes every frame you should be able to use the clear function and redraw it every frame. It doesn't sound good, but I can't find another way really.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号