Skip to content

Commit

Permalink
add alphabet
Browse files Browse the repository at this point in the history
  • Loading branch information
jesi-rgb committed Sep 6, 2023
1 parent a6edf25 commit 55fb5f0
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
media
__pycache__
renders/
blender/
30 changes: 30 additions & 0 deletions fonts/alphabet_ct.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import sys

sys.path.insert(1, "utils/")

from design_bits_system import *

from coldtype import *

factor = 10
tl = Timeline(26 * factor, fps=18 * 2)


@animation(rect=(1920, 1080), timeline=tl, bg=DB_BLACK)
def render(f):
pe = f.e(e := "qeio", 1)
return [
P(f.a.r.inset(70)).fssw(-1, DB_LIGHT_GREEN, 2, 1),
P(
StSt(
chr(65 + f.i // factor % 26),
Font.MutatorSans(),
f.e(e, r=(500, 750)),
wdth=1 - pe,
wght=pe,
)
.fssw(-1, DB_LIGHT_GREEN, 3)
.align(f.a.r, tv=1, th=1)
.removeOverlap(),
),
]
1 change: 0 additions & 1 deletion fonts/intro_coldtype.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
(1920 * factor, 1080 * factor), composites=1, timeline=at, bg=DB_BLACK, render_bg=1
)
def intro_typography(f):

c = at.current()

return PS(
Expand Down
31 changes: 28 additions & 3 deletions fonts/skia.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
import sys
from coldtype.fx.skia import phototype

from coldtype.warping import warp

sys.path.insert(1, "utils/")

Expand All @@ -8,8 +11,30 @@

skia = Font.Cacheable("~/fonts/variable/Skia.ttf")

text = "SKIA"


@animation((1920, 1080), render_bg=1, bg=DB_BLACK)
@animation(
(1920, 1080), timeline=Timeline(500, 60), composites=1, render_bg=1, bg=DB_BLACK
)
def scratch(f):
text = "yolo"
return StSt("Skia", skia, 200)
yolo = (
Glyphwise(
text,
lambda g: Style(
skia,
600,
wght=f.e("eeio", 1),
wdth=f.e("eeio", 2),
tu=f.e("eeio", 2, rng=(-200, 0)),
baselineShift=f.adj(-g.i * 50).e("qeio", 1, rng=(-100, 100)),
ro=1,
),
)
.f(DB_LIGHT_GREEN)
.ssw(DB_BLACK, f.e("eeio", 1, rng=(0, 20)))
.align(f.a.r)
.reversePens()
# .ch(phototype(cut=130, blur=0.3, cutw=30, fill=DB_LIGHT_GREEN))
)
return [yolo]

0 comments on commit 55fb5f0

Please sign in to comment.