중심 주변의 영상이 소용돌이처럼 돌아 말리는 트월 왜곡Footage around a center twists and curls like a whirlpool.
이미지 중심에서 반경 160px 범위가 1초 동안 180도까지 회전하며 말렸다가 0.6초에 풀린다
회전각이 720도를 넘어 이미지가 알아볼 수 없이 갈리거나 반경이 화면 전체라 왜곡이 무겁다
기본값은 클립에 쓴 값Defaults are the values used in the clip
| 항목PARAM | 기본DEFAULT | 범위RANGE | 메모NOTE |
|---|---|---|---|
| 지속 | 1s | 0.6~1.4s | 말리는 시간 |
| 회전각 | 180deg | 90~360 | 중심 최대 회전 |
| 반경 | 160px | 120~320 | 왜곡 영향 범위 |
| 복원 | 0.6s | 0.4~1s | 원래대로 |
| 중심 | (960,540) | 고정 | 화면 중앙 |
const u = { a: 0 };
tl.to(u, { a: Math.PI, duration: 1, ease: 'power2.inOut', onUpdate: draw }, 0.2)
.to(u, { a: 0, duration: 0.6, ease: 'power2.out', onUpdate: draw }, 1.4);
// GLSL: float d = distance(uv, c); float k = smoothstep(r, 0.0, d);
// float ang = a * k * k; uv = c + rot(ang) * (uv - c);그대로 붙여 넣는다Paste as is
<대상> 이미지에 트월 왜곡을 넣어줘. 화면 중앙(960,540)을 중심으로 반경 160px 안쪽을 0.2초에 시작해 1초 동안 power2.inOut으로 최대 180도까지 회전시키고, 중심일수록 많이 돌게 해(k=smoothstep^2). 1.4초부터 0.6초에 걸쳐 power2.out으로 원래대로 풀어줘.
Add a twirl distortion to the image in <target>. Centered on (960,540) with radius 160px, rotate up to 180 degrees over 1 second with power2.inOut starting at 0.2 seconds, more at the center (k = smoothstep squared). From 1.4 seconds unwind back over 0.6 seconds with power2.out.
<파일>의 이미지 캔버스에 twirl 셰이더를 추가해. d=distance(uv,c), k=smoothstep(r,0,d), 각도=a*k*k, r=160px 환산. a는 0.2초부터 1초 power2.inOut로 0→π, 1.4초부터 0.6초 power2.out으로 π→0. 0.7초·1.2초·2.2초 캡처로 중심이 가장 많이 돌고 마지막에 원본과 같아지는지 확인해.
Add a twirl shader to the image canvas in <file>. d=distance(uv,c), k=smoothstep(r,0,d), angle=a*k*k, r=160px converted. Tween a 0 to π from 0.2 s over 1 s power2.inOut, then π to 0 from 1.4 s over 0.6 s power2.out. Capture 0.7 s, 1.2 s and 2.2 s to check the center rotates most and the final frame equals the source.
HyperFrames · ReelForge · Scrolline
개념 출처와 라이선스. 구현은 이 레포에서 새로 씀Concept sources and licenses. Implementations are original to this repo