-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathwobbly_letter_ct.py
61 lines (52 loc) · 1.42 KB
/
wobbly_letter_ct.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
import sys
sys.path.insert(1, "utils/")
from design_bits_system import *
from coldtype import *
from coldtype.fx.skia import phototype, spackle
from coldtype.fx.motion import filmjitter
from coldtype.warping import warp
recursive = Font.Cacheable("~/fonts/variable/Recursive.ttf")
factor = 1
timeline = """
[a ]
[b ]
"""
at = AsciiTimeline(8, 60, timeline).inflate()
@animation(
(1920 * factor, 1080 * factor), composites=1, timeline=at, bg=DB_BLACK, render_bg=1
)
def wobbly_letter(f):
c = at.current()
return PS(
[
StSt(
"B",
Font.MutatorSans(),
wdth=f.e("seio", 1),
font_size=800,
fill=DB_LIGHT_GREEN,
).align(f.a.r),
StSt(
"B",
Font.MutatorSans(),
wdth=f.e("seio", 1),
font_size=800,
fill=DB_LIGHT_GREEN,
)
.align(f.a.r)
.removeOverlap()
.outline(2)
.ch(
warp(
mult=8,
speed=2,
ya=1 + f.i * 100,
xa=1 + f.i * 100,
xs=1900,
ys=1900,
)
)
.ch(phototype(f.a.r, cut=200, blur=0.3, cutw=20))
.blendmode(BlendMode.Difference),
]
)