Discuz! Board

 找回密碼
 立即註冊
搜索
熱搜: 活動 交友 discuz
查看: 3|回復: 0

The ticker changes the time value of the filter

[複製鏈接]

1

主題

1

帖子

5

積分

新手上路

Rank: 1

積分
5
發表於 12:30:05 | 顯示全部樓層 |閱讀模式
It's a simple implementation flow... Load the necessary image, place the sprite in the container , and first display the sprite on the canvas . At this time, make all but the first image transparent with alpha:0 . Apply a filter to the container and set the distortion to 0 . After that, it would be a good idea to switch the alpha of the sprite , which is the slider image, at regular intervals, just like implementing a normal slider . At the same time , by changing the filter value of the container , you can express switching using the distortion filter . TweenMax.to(displacementFilter.scale,1.5,{ x: 100, y: 100, ease: Expo.easeOut }) It is easy to manipulate the scale value of filter using TweenMax etc.

Also, by obtaining the mouse coordinates and linking them with the mousemove method, this type of expression is possible. It would be interesting to put it on the first visual logo etc. ShockwaveFilter As the name suggests, this filter can implement shock wave-like Phone Number List expressions. ( You need to add the official plugin pixi-filters .) This time, I tried to make the shock wave spread around the clicked coordinates . There may be situations where this can be used on websites, such as applying a filter to the hover animation .





The simple implementation flow is... Similar to the slider, load the necessary images and display them on the canvas . It feels like a filter is generated and applied when the sprite is clicked . Also, this time we will use ticker to animate. (To spread the shock wave.)  Then pass the clicked coordinates to the filter. This filter allows you to add noise to create an old-fashioned visual feel. There is a similar filter called NoiseFilter , but I got the impression that this is an enhanced version with more settings.

回復

使用道具 舉報

您需要登錄後才可以回帖 登錄 | 立即註冊

本版積分規則

Archiver|手機版|自動贊助|z

GMT+8, 01:17 , Processed in 0.037717 second(s), 18 queries .

抗攻擊 by GameHost X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回復 返回頂部 返回列表
一粒米 | 中興米 | 論壇美工 | 設計 抗ddos | 天堂私服 | ddos | ddos | 防ddos | 防禦ddos | 防ddos主機 | 天堂美工 | 設計 防ddos主機 | 抗ddos主機 | 抗ddos | 抗ddos主機 | 抗攻擊論壇 | 天堂自動贊助 | 免費論壇 | 天堂私服 | 天堂123 | 台南清潔 | 天堂 | 天堂私服 | 免費論壇申請 | 抗ddos | 虛擬主機 | 實體主機 | vps | 網域註冊 | 抗攻擊遊戲主機 | ddos |