Dosen原創(chuàng)
這是我學(xué)習(xí)quartz composer砾肺,Origami凑术,看官方文檔翻譯下來的翩蘸,每天一篇,有不準(zhǔn)確的地方希望能指出淮逊,一起交流進步催首。轉(zhuǎn)載請與我聯(lián)系,擅自轉(zhuǎn)載視作侵權(quán)泄鹏。
Swipe ? ?滑動屏幕
Lets you swipe a Layer between any two positions with spring physics. You can customize the behavior with the Swipe Settings patch.
讓你在任意兩個位置之間有物理彈性地滑動一個圖層郎任。你可以用滑動設(shè)置模塊自定義這個行為。
Input port
Enable ? ? ?啟用
Turn off to ignore user input.
關(guān)閉以忽略用戶的輸入备籽。
Direction ? ? ?方向
Sets the swipe direction.
設(shè)置滑動的方向舶治。
Start Position ? ? ?開始位置
The position in pixels where the layer should start.
層開始的像素位置。
End Position ? ? 結(jié)束位置
The position in pixels where the layer should end.
層結(jié)束的像素位置车猬。
Flip ? ? ?轉(zhuǎn)換
Pulse to animate the current position to the other position.
脈沖驅(qū)動動畫霉猛,從當(dāng)前位置到另一個位置。
Jump to Start ? ?跳至開始
Pulse to animate the current position to the Start Position.
脈沖驅(qū)動動畫從當(dāng)前位置到開始位置珠闰。
Jump to End ? ? 跳至結(jié)束
Pulse to animate the current position to the End Position.
脈沖驅(qū)動動畫從當(dāng)前位置到結(jié)束位置惜浅。
Settings ? ? ?設(shè)置
Connect to a Swipe Settings patch for additional customizations.
連接一個滑動設(shè)置模塊來獲取額外的自定義。
Output port
Position ? ? ?位置
The current position of the swipe. This is in pixels between or around the Start and End Positions. Connect this to the layer you're moving.
滑動的當(dāng)前位置伏嗜,這是在開始和結(jié)束位置之間有多少像素的距離坛悉。把這個連接到你要移動的層上伐厌。
Progress ? ? ?進度
A 0-1 value that describes where you are between the Start and End positions. Connect to Transition patches to synchronize other effects with the swipe.
一個從0-1的值描述你在開始到結(jié)束位置之間的哪個位置。連接變換模塊使其他效果與滑動同步裸影。
Index ? ? ?索引
0 if it's at the Start Position, 1 if it's at the End Position. This value only changes once the user releases their touch.
它在開始位置是0挣轨,在結(jié)束位置是1。這個值只有當(dāng)用戶釋放觸摸的時候改變空民。