A toolbox of film styles made in code for Claude Code: 66 ready to use, and your own. Each style is a style prompt plus a demo film made entirely in code by Claude Opus 5.5, with no video model. By Lemomo. · 一套用代码做片的风格工具箱:66 种现成风格,也能做出你自己的
JavaScript agent-skillsai-agentsai-short-filmai-videoanimationcanvasclaudeclaude-codeclaude-code-pluginclaude-code-skillcreative-codingffmpegfilmmakingmotion-graphicsopus-5-5prompt-librarytext-to-speechthreejsvideo-productionwebgl
"""Converts an EMS single-line SVG font into the JSON the engine uses: {meta, glyphs:{char:{w, s:[[x,y,x,y...],...]}}} (y up, units of 1/1000 em)"""
import re, json, sys, html
src, dst = sys.argv[1], sys.argv[2]
t = open(src, encoding='utf8').read()
meta = re.search(r'<metadata>(.*?)</metadata>', t, re.S).group(1).strip()
dflt = float(re.search(r'<font [^>]*horiz-adv-x="([\d.]+)"', t).group(1))
out = {}
for m in re.finditer(r'<glyph ([^>]*)/>', t):
a = dict(re.findall(r'([\w-]+)="([^"]*)"', m.group(1)))
if 'unicode' not in a: continue
ch = html.unescape(a['unicode'])
strokes, cur = [], None
for cmd, x, y in re.findall(r'([ML])\s*([-\d.]+)\s+([-\d.]+)', a.get('d', '')):
if cmd == 'M': cur = []; strokes.append(cur)
cur += [round(float(x), 1), round(float(y), 1)]
out[ch] = {'w': float(a.get('horiz-adv-x', dflt)), 's': strokes}
json.dump({'meta': meta, 'glyphs': out}, open(dst, 'w'), ensure_ascii=False, separators=(',', ':'))
print(dst, len(out))