アニメ作画エフェクト
アニメ作画シリーズを支えるエンジン。
使いどころ
- アニメシリーズのコントロールを自作するときに、同じエフェクトと擬音を使う
- 既存のコンポーネントにアニメ風の反応をひとつ足す(決定時の衝撃、着地の砂ぼこり)
注意点
- エフェクトのキャンバスはページの最前面にあるため、モーダルや固定ヘッダーの上を飛ぶことがあります
- 状態をエフェクトのクロックに依存させないでください。タブが非表示のあいだは止まります
- 擬音は 1 回の反応につき 1 つまで、ラベルにかからない位置に。エフェクトはフェードではなく縮んで消えます
- 擬音の字形は SIL OFL のフォント(Dela Gothic One、Noto Sans TC・SC)由来で、ライセンス表記は anime-fx-glyphs.ts にあります
エージェントに追加してもらう
インストールコマンド、使いどころ、props、デザインルールを一度にコピーできます。Claude Code、Cursor、Codex に貼り付けてください。
CLI でインストール
shadcn CLI を使います。ソースはプロジェクトにコピーされるので、すべての行があなたのものです。
$ npx shadcn@latest add https://sunui.synvize.com/r/anime-fx.json手動でインストール
- 1. 依存パッケージをインストールします。
$ npm install clsx tailwind-merge - 2.
cnヘルパーがなければlib/utils.tsに追加します。shadcn/ui を使っていない場合は、色のトークン用に sunui-theme.css も追加します(手順)。そのあとコンポーネントをコピーします。anime-fx.tsx"use client"; import { useEffect, useMemo, useRef, type RefObject } from "react"; import { add, addLayer, clamp, inn, onFrame, Spring, tone, type Layer, type Palette } from "./anime-fx-core"; import { glyphs, UNITS } from "./anime-fx-glyphs"; /** * anime-fx: an engine for anime-style drawn effects. A control is plain at rest; use it and it throws drawn effects: * impact stars, smoke, crystal chips, speed lines, accent wedges, splashes, and manga sound-effect lettering in Japanese or Chinese. * Everything is drawn on one canvas over the page that ignores the pointer. * * const back = useBackLayer(); // canvas behind the control (for the impact star) * const P = paletteOf(button); // colours from the theme, following --sunui-spot * burst(P, c.x, c.y, { layer: back.layer() }); * sfx(P, "impact", c.x, c.y - 70, { size: 92 }); // Japanese or Chinese from <html lang> * * With reduced motion on, no effect is drawn and state changes as usual. */ export * from "./anime-fx-core"; // ───────── lettering ───────── export type SfxSlot = "impact" | "click" | "swish" | "pop" | "skid" | "rumble"; export type SfxLang = "ja" | "zh-TW" | "zh-CN"; export type SfxStyle = "solid" | "hollow" | "dotted"; export const sfxWords: Record<SfxLang, Record<SfxSlot, string>> = { ja: { impact: "ドン!", click: "カチッ", swish: "シュッ", pop: "ポン", skid: "ズザッ", rumble: "ゴゴゴ" }, "zh-TW": { impact: "砰!", click: "喀!", swish: "咻!", pop: "啵!", skid: "唰!", rumble: "轟轟" }, "zh-CN": { impact: "砰!", click: "咔!", swish: "咻!", pop: "啵!", skid: "唰!", rumble: "轰轰" }, }; /** Default style per slot: hits are solid, the click is hollow, skid and rumble are screentone. */ export const sfxStyles: Record<SfxSlot, SfxStyle> = { impact: "solid", click: "hollow", swish: "solid", pop: "solid", skid: "dotted", rumble: "dotted" }; /** Chinese pages get Chinese words (traditional or simplified); every other language gets Japanese. */ export function sfxLang(lang = typeof document !== "undefined" ? document.documentElement.lang : ""): SfxLang { const l = lang.toLowerCase(); if (!l.startsWith("zh")) return "ja"; return /hant|tw|hk|mo/.test(l) ? "zh-TW" : "zh-CN"; } const fontOf = (lang: SfxLang) => (lang === "ja" ? glyphs.ja : lang === "zh-TW" ? glyphs.tc : glyphs.sc); const paths = new Map<string, Path2D>(); const pathOf = (d: string) => { let p = paths.get(d); if (!p) paths.set(d, (p = new Path2D(d))); return p; }; /** Seeded random, so the same seed lays a word out the same way. */ function seeded(seed: number) { let s = seed >>> 0 || 1; return () => (s = (s * 1664525 + 1013904223) >>> 0) / 4294967296; } /** * Draw a sound-effect word centred on (x, y). Each glyph turns a little, varies in size and steps up as the word goes on. * The edge is 5% of the size: Chinese glyphs have many strokes and a thicker edge fills the gaps inside them. */ export function drawWord(g: CanvasRenderingContext2D, P: Palette, text: string, lang: SfxLang, x: number, y: number, size: number, style: SfxStyle, seed = 7) { // Chinese glyphs are dense: below 48px screentone stops reading, so fall back to solid if (style === "dotted" && lang !== "ja" && size < 48) style = "solid"; const set = fontOf(lang); const r = seeded(seed); const em = size / UNITS; const items = [...text].flatMap((ch, i) => { const gl = set[ch]; if (!gl) return []; const big = ch === "!" ? 0.95 : i === 0 ? 1.12 : 0.92 + r() * 0.12; return [{ adv: gl[0] * 0.86 * big, d: gl[1], big, rot: (r() - 0.5) * 0.32, dy: -i * size * 0.06 + (r() - 0.5) * size * 0.08 }]; }); const total = items.reduce((s, m) => s + m.adv, 0) * em; const edge = Math.max(2, size * 0.05); const outer = style === "hollow" ? "#ffffff" : P.ink; const inner = style === "hollow" ? P.ink : "#ffffff"; const pass = (paint: (p: Path2D, k: number) => void) => { let px = x - total / 2; for (const m of items) { const k = em * m.big; const w = m.adv * em; g.save(); g.translate(px + w / 2, y + m.dy); g.rotate(m.rot); g.scale(k, k); // Glyph origin is the baseline at the left; move to the centre (a CJK body centres about 0.38 em above the baseline) g.translate(-m.adv / (0.86 * m.big) / 2, UNITS * 0.38); paint(pathOf(m.d), k); g.restore(); px += w; } }; g.lineJoin = "round"; pass((p, k) => { g.strokeStyle = outer; g.lineWidth = (edge * 2.2) / k; g.stroke(p); }); pass((p, k) => { g.strokeStyle = inner; g.lineWidth = (edge * (style === "hollow" ? 1.1 : 1.2)) / k; g.stroke(p); }); pass((p, k) => { if (style === "solid") g.fillStyle = P.ink; else if (style === "hollow") g.fillStyle = "#ffffff"; else { const gap = Math.max(2.6, size * 0.05) / k; g.fillStyle = tone(g, P.ink, "#ffffff", gap * 0.36, gap) ?? P.ink; } g.fill(p); if (style === "dotted") { g.strokeStyle = P.ink; g.lineWidth = Math.max(1, edge * 0.4) / k; g.stroke(p); } }); } /** A word lands a size too big, springs to size, wobbles while it stays, and shrinks away. */ export function sfx( P: Palette, slot: SfxSlot, x: number, y: number, o: { size?: number; rot?: number; life?: number; style?: SfxStyle; lang?: SfxLang; layer?: Layer | null } = {}, ) { const lang = o.lang ?? sfxLang(); const { size = 64, rot = -0.12, life = 1, style = sfxStyles[slot], layer } = o; const text = sfxWords[lang][slot]; const s = new Spring(0.2, 520, 17); s.to = 1; let lastT = 0; const seed = Math.floor(Math.random() * 1e6); add( life, (g, k, t) => { const sc = s.step(t - lastT) * (1 - inn(clamp((k - 0.86) / 0.14))); lastT = t; if (sc < 0.02) return; g.translate(x, y); g.rotate(rot + Math.sin(t * 14) * 0.015); g.scale(sc, sc); drawWord(g, P, text, lang, 0, 0, size, style, seed); }, layer, ); } // ───────── React ───────── /** * A press: squash while held (keeping volume, so it widens), overshoot on release. Also returns pop (scale up, spring back) * and tilt (degrees); for a hit, set their x and call kick(). Uses the animation loop only while something moves. */ export function useSquash(ref: RefObject<HTMLElement | null>, { low = 0.6, wide = 0.25 } = {}) { const st = useMemo(() => ({ s: new Spring(1, 520, 15), pop: new Spring(1, 300, 12), tilt: new Spring(0, 260, 10), off: null as null | (() => void) }), []); const kick = useMemo( () => () => { if (st.off) return; st.off = onFrame((dt) => { const el = ref.current; const y = st.s.step(dt); const p = st.pop.step(dt); const t = st.tilt.step(dt); if (el) el.style.transform = `rotate(${t.toFixed(2)}deg) scale(${((1 + (1 - y) * wide) * p).toFixed(4)}, ${(y * p).toFixed(4)})`; if (st.s.to === 1 && st.s.still && st.pop.still && st.tilt.still) { st.off?.(); st.off = null; if (el) el.style.transform = ""; } }); }, [ref, st, wide], ); useEffect(() => { const el = ref.current; if (!el) return; const down = (e: PointerEvent) => { if (e.button !== 0 || (el as HTMLButtonElement).disabled) return; st.s.to = low; kick(); }; const up = () => { st.s.to = 1; kick(); }; const ends = ["pointerup", "pointerleave", "pointercancel", "blur"] as const; el.addEventListener("pointerdown", down); for (const e of ends) el.addEventListener(e, up); return () => { el.removeEventListener("pointerdown", down); for (const e of ends) el.removeEventListener(e, up); st.off?.(); st.off = null; }; }, [ref, st, low, kick]); return { s: st.s, pop: st.pop, tilt: st.tilt, kick }; } /** * A canvas behind a control, for effects that belong behind it such as the impact star. * Spread props onto a <canvas> inside the control's wrapper (the wrapper needs isolate). The canvas covers the wrapper plus spread * while it draws, and being fixed it never makes the page scroll sideways. */ export function useBackLayer(spread = 110) { const ref = useRef<HTMLCanvasElement>(null); const layer = useRef<Layer | null>(null); useEffect(() => { if (!ref.current) return; const { layer: L, remove } = addLayer(ref.current, spread); layer.current = L; return () => { remove(); layer.current = null; }; }, [spread]); // Stable across renders, so it is safe in effect dependencies return useMemo( () => ({ layer: () => layer.current, props: { ref, "aria-hidden": true, className: "pointer-events-none fixed -z-10", style: { left: 0, top: 0, width: 0, height: 0 }, }, }), [], ); }anime-fx-core.ts/** * anime-fx core: springs, the shared clock, canvas layers and the drawn effects. No React; anime-fx.tsx wraps it in hooks. * * Rules: every shape is a lit face, a shadow face and an outline in flat colour, with no gradients or blur; * effects leave by shrinking or thinning, never by fading; with reduced motion on, no effect is drawn and state changes as usual. * The method follows the rules of Sakuga VFX (MIT, github.com/finktheartist/sakuga-vfx); the code is our own. */ export type Palette = { /** Lit face */ fill: string; /** Shadow face */ shade: string; /** Outline */ line: string; /** Accent wedges */ accent: string; /** Lettering ink */ ink: string; }; const TAU = Math.PI * 2; export const clamp = (v: number, a = 0, b = 1) => Math.min(b, Math.max(a, v)); const out = (t: number) => 1 - (1 - t) ** 3; export const inn = (t: number) => t * t * t; const back = (t: number) => 1 + 2.70158 * (t - 1) ** 3 + 1.70158 * (t - 1) ** 2; export const rnd = (a: number, b: number) => a + Math.random() * (b - a); /** A spring with 8 ms substeps. Anything the hand moves, squashes or settles uses this, not an easing curve. */ export class Spring { v = 0; to: number; constructor( public x: number, public k = 300, public d = 20, ) { this.to = x; } step(dt: number) { if (!(dt > 0)) return this.x; const n = Math.ceil(dt / 0.008); const h = dt / n; for (let i = 0; i < n; i++) { this.v += (-this.k * (this.x - this.to) - this.d * this.v) * h; this.x += this.v * h; } return this.x; } /** At rest on its target */ get still() { return Math.abs(this.x - this.to) < 0.001 && Math.abs(this.v) < 0.01; } } // ───────── layers and the clock ───────── export type Draw = (g: CanvasRenderingContext2D, k: number, t: number) => void; type Fx = { t: number; life: number; draw: Draw }; export type Layer = { c: HTMLCanvasElement | null; live: Fx[]; spread?: number }; /** The front layer: one canvas over the whole viewport that ignores the pointer, created on the first effect. */ const front: Layer = { c: null, live: [] }; const layers: Layer[] = [front]; const frames = new Set<(dt: number) => void>(); let timers: { at: number; f: () => void }[] = []; let now = 0; let last = 0; let running = false; let paused = false; let motion: "smooth" | "twos" = "smooth"; let held = 0; /** * "twos" draws every effect on twos, at 12 drawings a second like hand-drawn animation; "smooth" (default) draws every frame. * Only the drawn effects step: springs, thumbs and anything that follows the hand stay smooth. The page can also set * <html data-anime-motion="twos"> before any script runs. */ export function setMotion(m: "smooth" | "twos") { motion = m; } const onTwos = () => motion === "twos" || (typeof document !== "undefined" && document.documentElement.dataset.animeMotion === "twos"); export const calm = () => typeof matchMedia !== "undefined" && matchMedia("(prefers-reduced-motion: reduce)").matches; function ensureFront() { if (front.c || typeof document === "undefined") return; const c = document.createElement("canvas"); c.setAttribute("aria-hidden", "true"); c.dataset.animeFx = ""; c.style.cssText = "position:fixed;inset:0;width:100vw;height:100vh;pointer-events:none;z-index:2147483000"; document.body.appendChild(c); front.c = c; } /** * Register a canvas inside a component, behind its control (the impact star sits behind a button). Returns the layer and a function * that unregisters it. The canvas is position: fixed and is fitted to its parent plus spread on every frame it draws, so it never * adds to the page's scrollable area the way an oversized absolute canvas would. */ export function addLayer(c: HTMLCanvasElement, spread = 110) { const L: Layer = { c, live: [], spread }; layers.push(L); return { layer: L, remove: () => { const i = layers.indexOf(L); if (i >= 0) layers.splice(i, 1); }, }; } /** Add an effect. life is in seconds; draw receives progress k (0 to 1) and elapsed seconds t. */ export function add(life: number, draw: Draw, layer?: Layer | null) { if (calm()) return; const L = layer ?? front; if (L === front) ensureFront(); L.live.push({ t: 0, life, draw }); start(); } /** Run later on the shared clock (not setTimeout), so the frame tool can step it. */ export function later(ms: number, f: () => void) { timers.push({ at: now + ms / 1000, f }); start(); } /** Call every frame; returns a function that stops it. The loop stops by itself when nothing moves. */ export function onFrame(f: (dt: number) => void) { frames.add(f); start(); return () => { frames.delete(f); }; } function paint(dt: number) { const dpr = Math.min(2, devicePixelRatio || 1); for (const L of layers) { const c = L.c; if (!c || !c.isConnected) continue; if (L !== front && L.live.length) fit(c, L.spread ?? 110); const r = c.getBoundingClientRect(); const w = Math.round(r.width * dpr); const h = Math.round(r.height * dpr); if (c.width !== w) c.width = w; if (c.height !== h) c.height = h; const g = c.getContext("2d"); if (!g) continue; g.setTransform(1, 0, 0, 1, 0, 0); g.clearRect(0, 0, w, h); if (!L.live.length) continue; // Effects are placed in page coordinates and mapped to this canvas when drawn, so they scroll with their control g.setTransform(dpr, 0, 0, dpr, -(r.left + scrollX) * dpr, -(r.top + scrollY) * dpr); g.lineJoin = "round"; g.lineCap = "round"; for (const p of L.live) { p.t += dt; g.save(); p.draw(g, clamp(p.t / p.life), p.t); g.restore(); } L.live = L.live.filter((p) => p.t < p.life); } } /** Fit a fixed back canvas over its parent plus spread. A transformed ancestor turns fixed into absolute, so correct by what was measured. */ function fit(c: HTMLCanvasElement, spread: number) { const host = c.parentElement; if (!host) return; const h = host.getBoundingClientRect(); const want = { left: h.left - spread, top: h.top - spread }; c.style.width = `${h.width + spread * 2}px`; c.style.height = `${h.height + spread * 2}px`; c.style.left = `${want.left}px`; c.style.top = `${want.top}px`; const got = c.getBoundingClientRect(); if (Math.abs(got.left - want.left) > 0.5) c.style.left = `${want.left - (got.left - want.left)}px`; if (Math.abs(got.top - want.top) > 0.5) c.style.top = `${want.top - (got.top - want.top)}px`; } function advance(dt: number) { now += dt; const due = timers.filter((q) => q.at <= now); timers = timers.filter((q) => q.at > now); for (const q of due) q.f(); for (const f of frames) f(dt); held += dt; // On twos the effects keep their time but the canvas is redrawn only every 1/12 s if (onTwos() && held < 1 / 12 - 1e-6) return; paint(held); held = 0; } function loop(ms: number) { const dt = clamp((ms - last) / 1000, 0, 0.034); last = ms; if (!paused) advance(dt); if (!paused && !frames.size && !timers.length && layers.every((L) => !L.live.length)) { running = false; paint(0); return; } requestAnimationFrame(loop); } function start() { if (running || typeof window === "undefined") return; running = true; last = performance.now(); requestAnimationFrame(loop); } // For frame sheets: pause(true) stops the clock, step(seconds) advances it at 60 fps if (typeof window !== "undefined") (window as unknown as { __animeFx?: object }).__animeFx ??= { pause: (v = true) => { paused = v; start(); }, step: (sec: number) => { for (let t = 0; t < sec - 1e-6; t += 1 / 60) advance(1 / 60); }, }; /** A point on an element in page coordinates; fx and fy go from 0 to 1. */ export function at(el: Element, fx = 0.5, fy = 0.5) { const b = el.getBoundingClientRect(); return { x: b.left + scrollX + b.width * fx, y: b.top + scrollY + b.height * fy, w: b.width, h: b.height }; } /** Turn a CSS colour (variables, color-mix) into a string the canvas accepts. */ function resolve(el: Element, css: string) { const probe = document.createElement("span"); probe.style.cssText = `display:none;color:${css}`; el.appendChild(probe); const c = getComputedStyle(probe).color; probe.remove(); return c; } const SPOT = "var(--sunui-spot, var(--primary))"; /** * Colours from the element's theme: the lit face is always white (drawn effects are white, and read better on a dark page too), * the shadow face is the brand spot mixed into white, the outline is the brand spot, accents are the semantic red. * Read on every trigger, so theme and brand colour changes apply. Pass another CSS colour as hue for an effect that belongs * to a semantic colour (the rating amber), so the effect matches what it decorates. */ export function paletteOf(el: Element, hue = SPOT): Palette { return { fill: "#ffffff", shade: resolve(el, `color-mix(in oklch, ${hue} 24%, #fff)`), line: resolve(el, hue), accent: resolve(el, "var(--sunui-like, #dc3d43)"), ink: "#141414", }; } // ───────── fills ───────── const tones = new Map<string, CanvasPattern | null>(); /** Screentone: a grid of dots on a ground colour. */ export function tone(g: CanvasRenderingContext2D, dot: string, bg: string, r: number, gap: number) { const key = `${dot}|${bg}|${r}|${gap}`; if (tones.has(key)) return tones.get(key)!; const t = document.createElement("canvas"); t.width = Math.round(gap * 2); t.height = Math.round(gap * 2); const x = t.getContext("2d")!; x.fillStyle = bg; x.fillRect(0, 0, t.width, t.height); x.fillStyle = dot; const s = t.width / 2; for (const [px, py] of [[0, 0], [s * 2, 0], [0, s * 2], [s * 2, s * 2], [s, s]]) { x.beginPath(); x.arc(px, py, r, 0, TAU); x.fill(); } const p = g.createPattern(t, "repeat"); tones.set(key, p); return p; } /** Circles drawn as one shape: outline, shadow face, then the lit face shifted up and left. */ function blob(g: CanvasRenderingContext2D, P: Palette, cs: [number, number, number][], lw = 1.6) { const all = new Path2D(); const lit = new Path2D(); for (const [x, y, r] of cs) { if (r <= 0.4) continue; all.moveTo(x + r, y); all.arc(x, y, r, 0, TAU); const lx = x - r * 0.18; const ly = y - r * 0.2; lit.moveTo(lx + r * 0.78, ly); lit.arc(lx, ly, r * 0.78, 0, TAU); } g.strokeStyle = P.line; g.lineWidth = lw * 2; g.stroke(all); g.fillStyle = P.shade; g.fill(all); g.fillStyle = P.fill; g.fill(lit); } // ───────── effects (all in page coordinates) ───────── /** A smoke puff: swells with a little overshoot, rolls, and shrinks away. */ export function puff(P: Palette, x: number, y: number, o: { n?: number; size?: number; vx?: number; vy?: number; life?: number; layer?: Layer | null } = {}) { const { n = 5, size = 13, vx = 0, vy = -18, life = 0.8, layer } = o; const lobes = Array.from({ length: n }, (_, i) => ({ a: (i / n) * TAU + rnd(0, 0.6), d: rnd(0.25, 0.9) * size, r: rnd(0.55, 1) * size, sp: rnd(0.6, 1.3) })); add( life, (g, k, t) => { const grow = back(clamp(t / 0.22)); const die = 1 - inn(clamp((k - 0.5) / 0.5)); const px = x + vx * out(k) * life; const py = y + vy * out(k) * life; const spread = 0.5 + out(k); blob(g, P, lobes.map((l) => [px + Math.cos(l.a + t * l.sp) * l.d * spread, py + Math.sin(l.a + t * l.sp) * l.d * spread - out(k) * 5, l.r * grow * die])); }, layer, ); } /** The impact star: a large star in the shadow face under a lit one; it leaves by its points thinning away. Usually on the layer behind the control. */ export function burst(P: Palette, x: number, y: number, o: { r?: number; spikes?: number; life?: number; layer?: Layer | null } = {}) { const { r = 60, spikes = 13, life = 0.4, layer } = o; const j = Array.from({ length: spikes * 2 }, (_, i) => (i % 2 ? rnd(0.34, 0.5) : rnd(0.75, 1.15))); const rot = rnd(0, TAU); const star = (R: number, turn: number, inner: number) => { const p = new Path2D(); j.forEach((m, i) => { const a = rot + turn + (i / j.length) * TAU; const rr = R * (i % 2 ? m * inner : m); if (i) p.lineTo(x + Math.cos(a) * rr, y + Math.sin(a) * rr); else p.moveTo(x + Math.cos(a) * rr, y + Math.sin(a) * rr); }); p.closePath(); return p; }; add( life, (g, k) => { const R = r * out(clamp(k / 0.3)); const hollow = 1 + inn(clamp((k - 0.35) / 0.65)) * 1.3; g.strokeStyle = P.line; g.lineWidth = 1.4; const big = star(R * 1.16, 0.19, hollow); g.fillStyle = P.shade; g.fill(big); g.stroke(big); const small = star(R * 0.84, 0, hollow); g.fillStyle = P.fill; g.fill(small); g.stroke(small); }, layer, ); } /** Crystal chips: long facets that tumble, fall and shrink away. Launch them from the edge of a control (or on its back layer) so they never cover the label. */ export function shards(P: Palette, x: number, y: number, o: { n?: number; speed?: number; size?: number; life?: number; dir?: number; arc?: number; layer?: Layer | null } = {}) { const { n = 7, speed = 190, size = 5, life = 0.75, dir = -Math.PI / 2, arc = Math.PI, layer } = o; const shape = [[-1.4, 0.1], [-0.6, -0.7], [1.2, -0.45], [1.5, 0.15], [0.4, 0.75]]; for (let i = 0; i < n; i++) { const a = dir + rnd(-arc, arc) / 2; const v = speed * rnd(0.5, 1.15); const s = size * rnd(0.6, 1.4); const spin = rnd(-7, 7); add(life * rnd(0.7, 1), (g, k, t) => { const sc = s * (1 - inn(clamp((k - 0.6) / 0.4))); g.translate(x + Math.cos(a) * v * t, y + Math.sin(a) * v * t + 420 * t * t); g.rotate(spin * t); const p = new Path2D(); shape.forEach(([px, py], m) => (m ? p.lineTo(px * sc, py * sc) : p.moveTo(px * sc, py * sc))); p.closePath(); g.fillStyle = P.fill; g.fill(p); g.strokeStyle = P.line; g.lineWidth = 1.3; g.stroke(p); }, layer); } } /** Accent wedges: point at something, then fly off it. */ export function ticks(P: Palette, x: number, y: number, o: { n?: number; r?: number; len?: number; dir?: number; life?: number; fan?: number } = {}) { const { n = 3, r = 16, len = 12, dir = -Math.PI / 2, life = 0.4, fan = 0.45 } = o; add(life, (g, k) => { const a = out(clamp(k / 0.5)); const b = inn(clamp((k - 0.4) / 0.6)); g.fillStyle = P.accent; g.beginPath(); for (let i = 0; i < n; i++) { const an = dir + (i - (n - 1) / 2) * fan; const r0 = r + len * b * 1.25; const r1 = r + len * a * 1.25; const hw = 0.07 + 2.2 / (r1 + 8); if (r1 - r0 < 0.6) continue; g.moveTo(x + Math.cos(an) * r0, y + Math.sin(an) * r0); g.lineTo(x + Math.cos(an - hw) * r1, y + Math.sin(an - hw) * r1); g.lineTo(x + Math.cos(an + hw) * r1, y + Math.sin(an + hw) * r1); g.closePath(); } g.fill(); }); } /** Speed lines: shoot out along dir and end when the tail catches the head. */ export function lines(P: Palette, x: number, y: number, o: { n?: number; dir?: number; len?: number; spread?: number; life?: number } = {}) { const { n = 5, dir = Math.PI, len = 40, spread = 22, life = 0.3 } = o; const ls = Array.from({ length: n }, () => ({ off: rnd(-spread, spread), l: len * rnd(0.6, 1.1) })); const nx = Math.cos(dir); const ny = Math.sin(dir); add(life, (g, k) => { g.strokeStyle = P.line; g.lineWidth = 2.4 * (1 - k); g.beginPath(); for (const s of ls) { const bx = x - ny * s.off; const by = y + nx * s.off; g.moveTo(bx + nx * inn(k) * s.l, by + ny * inn(k) * s.l); g.lineTo(bx + nx * out(k) * s.l, by + ny * out(k) * s.l); } g.stroke(); }); } /** Wobble marks: two small arcs beside something that has just stopped. dir 1 draws on the right, -1 on the left. */ export function wob(P: Palette, x: number, y: number, o: { dir?: number; r?: number; life?: number } = {}) { const { dir = 1, r = 14, life = 0.4 } = o; const c = dir > 0 ? 0 : Math.PI; add(life, (g, k) => { g.strokeStyle = P.line; g.lineWidth = 2.2 * (1 - k); g.beginPath(); for (const d of [0, 6]) { const rr = r + d + out(k) * 7; g.moveTo(x - dir * r + Math.cos(c - 0.45) * rr, y + Math.sin(c - 0.45) * rr); g.arc(x - dir * r, y, rr, c - 0.45, c + 0.45); } g.stroke(); }); } /** A glint: a four-pointed sparkle that opens and closes. */ export function kira(P: Palette, x: number, y: number, o: { r?: number; life?: number } = {}) { const { r = 9, life = 0.6 } = o; add(life, (g, k) => { const s = r * Math.sin(k * Math.PI) ** 0.6; const q = s * 0.16; const p = new Path2D(); p.moveTo(x, y - s); p.quadraticCurveTo(x + q, y - q, x + s * 0.7, y); p.quadraticCurveTo(x + q, y + q, x, y + s); p.quadraticCurveTo(x - q, y + q, x - s * 0.7, y); p.quadraticCurveTo(x - q, y - q, x, y - s); g.fillStyle = P.fill; g.fill(p); g.strokeStyle = P.line; g.lineWidth = 1.4; g.stroke(p); }); } /** A splash crown: tongues of water rise and fall back while drops fly. */ export function splash(P: Palette, x: number, y: number, o: { w?: number; h?: number; life?: number } = {}) { const { w = 30, h = 22, life = 0.6 } = o; const n = 6; const tongues = Array.from({ length: n }, (_, i) => ({ u: i / (n - 1) - 0.5, h: h * rnd(0.55, 1.1) * (1 - Math.abs(i / (n - 1) - 0.5) * 0.7), lean: rnd(-0.4, 0.4) })); add(life, (g, k) => { const rise = Math.sin(clamp(k / 0.9) * Math.PI); const p = new Path2D(); p.moveTo(x - w * 0.6, y); for (const t of tongues) { const tx = x + t.u * w * 1.1 + t.lean * t.h * rise; const ty = y - t.h * rise; p.lineTo(tx - 2.2, y - t.h * rise * 0.3); p.lineTo(tx, ty); p.lineTo(tx + 2.2, y - t.h * rise * 0.3); } p.lineTo(x + w * 0.6, y); p.closePath(); g.fillStyle = P.fill; g.fill(p); g.strokeStyle = P.line; g.lineWidth = 1.5; g.stroke(p); }); for (let i = 0; i < 5; i++) { const a = -Math.PI / 2 + rnd(-1.1, 1.1); const v = rnd(90, 180); const r0 = rnd(1.8, 3.4); add(life * rnd(0.8, 1.1), (g, k, t) => { const r = r0 * (1 - inn(clamp((k - 0.6) / 0.4))); g.beginPath(); g.arc(x + Math.cos(a) * v * t, y - 4 + Math.sin(a) * v * t + 520 * t * t, r, 0, TAU); g.fillStyle = P.fill; g.fill(); g.strokeStyle = P.line; g.lineWidth = 1.2; g.stroke(); }); } } /** A slash: one stroke from a to b that draws across fast (lit face inside the brand outline), then thins away. */ export function slash(P: Palette, ax: number, ay: number, bx: number, by: number, o: { width?: number; life?: number; layer?: Layer | null } = {}) { const { width = 7, life = 0.34, layer } = o; add( life, (g, k) => { const head = out(clamp(k / 0.22)); const w = width * (1 - inn(clamp((k - 0.2) / 0.8))); if (w < 0.3) return; g.beginPath(); g.moveTo(ax, ay); g.lineTo(ax + (bx - ax) * head, ay + (by - ay) * head); g.strokeStyle = P.line; g.lineWidth = w + 3; g.stroke(); g.strokeStyle = P.fill; g.lineWidth = w; g.stroke(); }, layer, ); }anime-fx-glyphs.ts/** * Glyph outlines for anime-fx lettering (generated, do not edit by hand). * Each glyph is [advance, SVG path] on a 256-unit em, y pointing down, baseline at 0. * * Outlines come from fonts under the SIL Open Font License 1.1, and only the glyphs below were taken: * ja: Dela Gothic One (Copyright 2020 The Dela Gothic Project Authors) * tc: Noto Sans TC Black (Copyright 2014-2021 Adobe; Noto is a trademark of Google) * sc: Noto Sans SC Black (same) * License: https://openfontlicense.org . Under the OFL these outlines may ship with software but may not be sold on their own. */ export type GlyphSet = Record<string, readonly [number, string]>; export const UNITS = 256; export const glyphs: Record<"ja" | "tc" | "sc", GlyphSet> = { ja: { "ド": [256, "M225 -47Q172 -66 101 -80V1H29Q31 -42 31 -85Q31 -128 31 -192H101V-139Q135 -135 175 -127Q215 -119 249 -109Q240 -95 235 -82Q231 -69 225 -47ZM218 -136Q214 -154 203 -176L223 -182Q233 -163 238 -143ZM191 -127Q186 -147 176 -167L197 -174Q207 -153 211 -134Z"], "ン": [256, "M6 -62Q54 -62 85 -68Q116 -75 139 -89Q159 -102 171 -127Q182 -151 186 -189Q202 -184 217 -180Q232 -176 253 -170Q247 -123 230 -93Q213 -63 184 -42Q157 -24 121 -13Q86 -3 33 2Q28 -19 22 -33Q17 -47 6 -62ZM108 -103Q76 -114 57 -120Q37 -126 3 -133Q15 -144 27 -160Q40 -175 46 -185Q78 -176 103 -168Q129 -159 154 -149Z"], "カ": [256, "M246 -171 246 -107Q246 -86 246 -76Q245 -49 235 -34Q224 -18 203 -10Q181 -2 145 2Q129 -27 118 -42Q91 -13 29 1Q21 -30 4 -60Q49 -65 65 -83Q75 -94 79 -114H22V-171H82V-194H149Q149 -178 148 -171ZM181 -96Q181 -104 180 -114H145Q141 -80 130 -60Q152 -59 162 -62Q173 -65 177 -72Q181 -80 181 -96Z"], "チ": [256, "M250 -126V-76H190Q185 -50 171 -34Q156 -18 125 -9Q93 0 47 3Q42 -15 37 -29Q31 -44 23 -57Q32 -56 44 -56Q68 -56 89 -60Q110 -64 118 -72Q120 -74 122 -76H6V-126H129L128 -137Q104 -137 79 -138Q55 -138 30 -138Q30 -155 30 -166Q30 -177 28 -189Q44 -188 74 -188Q159 -188 237 -193Q236 -182 235 -169Q235 -157 235 -138L194 -138Q194 -134 194 -126Z"], "ッ": [256, "M242 -143Q236 -109 222 -85Q208 -60 185 -42Q165 -26 137 -15Q110 -4 76 3Q66 -15 57 -29Q49 -42 36 -54Q73 -59 96 -65Q118 -70 134 -79Q145 -86 154 -96L115 -89Q111 -99 104 -115Q94 -142 88 -155L144 -160Q145 -157 153 -138Q160 -120 164 -109Q175 -127 180 -157ZM54 -75 44 -98Q41 -105 36 -116Q31 -127 23 -146L78 -154Q92 -117 105 -86Z"], "シ": [256, "M129 -132Q112 -138 89 -143Q66 -148 30 -152Q34 -163 36 -177Q39 -190 40 -200Q103 -193 141 -175ZM6 -62Q54 -62 85 -68Q116 -75 139 -89Q159 -102 171 -127Q182 -151 186 -189Q202 -184 217 -180Q232 -176 253 -170Q247 -123 230 -93Q213 -63 184 -42Q157 -24 121 -13Q86 -3 33 2Q28 -19 22 -33Q17 -47 6 -62ZM108 -81Q86 -86 62 -88Q39 -90 12 -90Q13 -102 13 -115Q13 -128 12 -141Q42 -140 67 -137Q92 -133 115 -127Z"], "ュ": [256, "M201 -152 195 -58H228V-9H32V-58H134L137 -102H50V-152Z"], "ポ": [256, "M159 -111 215 -119Q222 -96 233 -79Q243 -61 260 -44Q227 -24 207 -6Q189 -32 179 -54Q168 -77 159 -110V-40Q159 -23 153 -15Q147 -6 132 -3Q116 0 86 0Q86 -9 83 -24Q80 -39 76 -50Q67 -32 49 -6Q29 -24 -3 -44Q13 -61 24 -79Q34 -96 41 -119L97 -111V-124H13V-179H97V-194H159V-179H201Q194 -188 194 -200Q194 -209 199 -216Q203 -224 211 -229Q219 -233 228 -233Q237 -233 244 -229Q252 -224 257 -216Q261 -209 261 -200Q261 -189 255 -180Q249 -172 239 -168V-124H159ZM209 -200Q209 -192 215 -186Q220 -181 228 -181Q235 -181 241 -186Q246 -192 246 -200Q246 -207 241 -213Q235 -218 228 -218Q220 -218 215 -213Q209 -207 209 -200ZM88 -55Q94 -55 95 -57Q97 -59 97 -66V-110Q89 -78 78 -56Q82 -55 88 -55Z"], "ズ": [256, "M219 -226Q220 -207 215 -190L193 -193Q198 -210 198 -229ZM248 -222Q248 -204 243 -186L222 -189Q226 -206 226 -225ZM218 3Q184 -13 141 -37Q100 -12 51 2Q41 -14 31 -27Q22 -41 6 -58Q60 -65 98 -82Q136 -99 162 -128H22V-183L216 -184L240 -131Q218 -99 190 -73Q219 -62 248 -58Q228 -23 218 3Z"], "ザ": [256, "M215 -185Q215 -184 218 -173H247V-118H223Q222 -77 202 -51Q182 -26 149 -14Q116 -2 72 4Q62 -15 53 -30Q43 -44 29 -57Q73 -58 100 -64Q127 -70 141 -83Q154 -96 157 -118H102V-75H36V-118H9V-173H36V-195H102V-173H152Q151 -179 147 -195H203Q206 -208 206 -222L227 -219Q227 -201 223 -184ZM255 -215Q256 -197 251 -180L229 -183Q234 -200 234 -218Z"], "ゴ": [256, "M220 -230Q221 -211 216 -194L194 -197Q199 -214 199 -233ZM249 -226Q249 -208 244 -190L223 -193Q227 -210 227 -229ZM166 -129H21V-186H237V-6H166V-11H18V-71H166Z"], "!": [79, "M71 -200Q71 -183 70 -134Q70 -126 70 -123Q65 -87 63 -60H16Q15 -87 9 -123L9 -134Q8 -173 8 -200ZM69 5H10V-40H69Z"], }, tc: { "砰": [256, "M109 -207H241V-174H109ZM104 -93H249V-58H104ZM155 -198H192V24H155ZM210 -166 245 -159Q242 -149 239 -138Q236 -127 232 -118Q229 -108 226 -101L198 -108Q201 -116 203 -126Q206 -136 207 -147Q209 -157 210 -166ZM107 -158 136 -165Q139 -156 142 -146Q144 -135 146 -125Q148 -116 149 -108L118 -100Q118 -108 116 -118Q114 -128 112 -138Q110 -149 107 -158ZM10 -209H100V-175H10ZM41 -129H98V-6H41V-39H67V-96H41ZM38 -191 71 -184Q66 -159 59 -135Q51 -110 41 -88Q30 -67 16 -51Q16 -56 14 -64Q12 -73 9 -82Q7 -91 4 -96Q17 -113 25 -138Q33 -164 38 -191ZM25 -129H55V12H25Z"], "喀": [256, "M94 -194H246V-145H212V-164H125V-145H94ZM109 -55H228V24H194V-27H141V24H109ZM129 -11H212V17H129ZM137 -165 170 -159Q160 -139 146 -122Q132 -104 109 -90Q106 -96 99 -103Q93 -111 88 -114Q107 -124 119 -138Q131 -151 137 -165ZM147 -148H204V-121H134ZM198 -148H205L211 -149L232 -136Q221 -111 201 -93Q181 -75 156 -63Q132 -52 104 -46Q102 -50 99 -56Q95 -61 91 -67Q88 -72 84 -76Q111 -80 134 -89Q156 -97 173 -111Q190 -124 198 -142ZM142 -210 179 -220Q183 -212 187 -202Q191 -193 194 -186L155 -174Q153 -181 150 -191Q146 -201 142 -210ZM145 -125Q155 -114 172 -105Q189 -96 209 -90Q230 -84 252 -82Q248 -75 245 -65Q242 -55 241 -48Q216 -53 194 -62Q171 -71 152 -83Q133 -94 119 -109ZM37 -198H88V-27H37V-59H58V-167H37ZM15 -198H46V-10H15Z"], "咻": [256, "M140 -165H246V-133H140ZM176 -218H208V24H176ZM118 -219 150 -211Q144 -188 135 -166Q126 -143 116 -122Q105 -102 92 -87Q91 -91 87 -98Q84 -104 80 -110Q77 -117 73 -121Q88 -138 100 -165Q111 -191 118 -219ZM210 -145Q214 -131 218 -116Q222 -101 228 -87Q233 -73 239 -61Q246 -49 253 -40Q247 -36 240 -29Q233 -22 229 -16Q221 -30 213 -50Q206 -71 201 -94Q195 -118 192 -141ZM173 -145 193 -141Q189 -117 183 -93Q176 -69 168 -48Q160 -27 150 -12Q146 -18 139 -25Q132 -32 127 -36Q135 -46 142 -58Q148 -70 154 -85Q160 -99 165 -115Q169 -130 173 -145ZM102 -148 130 -176 133 -175V24H102ZM33 -198H86V-42H33V-76H56V-164H33ZM15 -198H46V-20H15Z"], "啵": [256, "M147 -186H229V-155H147ZM142 -120H226V-91H142ZM176 -218H209V-113H176ZM214 -120H220L226 -121L247 -114Q241 -81 230 -55Q219 -28 202 -9Q185 11 164 24Q160 18 154 10Q148 2 143 -3Q162 -13 177 -29Q191 -46 201 -68Q210 -90 214 -114ZM133 -186H166V-129Q166 -112 165 -93Q164 -73 161 -52Q158 -31 153 -12Q147 8 138 24Q135 21 129 18Q124 15 118 12Q113 9 108 8Q117 -7 122 -25Q127 -42 130 -61Q132 -79 133 -97Q133 -114 133 -129ZM219 -186H224L229 -187L251 -179Q249 -166 245 -152Q241 -137 238 -127L213 -140Q215 -148 217 -160Q218 -172 219 -182ZM179 -110Q184 -86 193 -65Q203 -45 218 -29Q232 -13 253 -4Q248 1 241 9Q235 18 231 24Q208 13 192 -6Q176 -25 166 -50Q156 -75 150 -105ZM83 -198 106 -215Q113 -208 121 -199Q129 -189 134 -183L109 -164Q105 -171 97 -181Q90 -190 83 -198ZM80 -125 104 -143Q109 -139 114 -133Q120 -127 125 -122Q131 -117 134 -113L109 -92Q106 -97 101 -102Q96 -108 91 -114Q85 -120 80 -125ZM73 6Q77 -4 81 -17Q85 -30 89 -45Q93 -60 97 -75L124 -61Q122 -47 118 -33Q115 -19 111 -6Q108 7 104 19ZM36 -196H86V-28H36V-58H54V-167H36ZM14 -196H46V-8H14Z"], "唰": [256, "M181 -195H208V-30H181ZM214 -216H243V-11Q243 0 241 6Q239 13 232 16Q226 20 216 21Q206 22 193 22Q192 16 189 8Q187 -1 184 -7Q192 -7 199 -7Q207 -6 209 -6Q212 -7 213 -8Q214 -9 214 -12ZM29 -200H74V-33H29V-66H47V-167H29ZM14 -200H40V-16H14ZM102 -111H167V-83H123V0H102ZM156 -111H178V-27Q178 -20 177 -14Q176 -8 172 -5Q168 -1 164 0Q161 1 155 1Q155 -5 153 -12Q151 -20 148 -26Q151 -26 152 -26Q154 -26 155 -26Q156 -26 156 -28ZM79 -209H109V-134Q109 -117 108 -97Q107 -77 104 -57Q101 -36 95 -16Q89 3 79 19Q76 17 71 14Q67 11 61 8Q56 5 52 4Q62 -11 67 -29Q73 -46 75 -65Q78 -83 79 -101Q79 -119 79 -134ZM100 -209H177V-140H100V-168H146V-181H100ZM126 -134H153V-90H151V25H129V-90H126Z"], "轟": [256, "M13 -95H123V-76H13ZM6 -10H122V10H6ZM26 -208H232V-189H26ZM13 -125H244V-107H13ZM76 -150V-145H184V-150ZM76 -169V-164H184V-169ZM40 -184H221V-130H40ZM43 -37V-31H92V-37ZM43 -56V-51H92V-56ZM16 -71H119V-16H16ZM110 -219H145V-98H110ZM52 -102H82V24H52ZM130 -95H243V-76H130ZM129 -10H250V10H129ZM161 -37V-31H210V-37ZM161 -56V-51H210V-56ZM135 -71H237V-16H135ZM170 -102H200V24H170Z"], "!": [102, "M36 -69 29 -156 28 -196H74L72 -156L66 -69ZM51 4Q39 4 31 -5Q24 -13 24 -25Q24 -37 31 -45Q39 -53 51 -53Q63 -53 70 -45Q78 -37 78 -25Q78 -13 70 -5Q63 4 51 4Z"], }, sc: { "砰": [256, "M109 -207H241V-174H109ZM104 -93H249V-58H104ZM155 -198H192V24H155ZM210 -166 245 -159Q242 -149 239 -138Q236 -127 232 -118Q229 -108 226 -101L198 -108Q201 -116 203 -126Q206 -136 207 -147Q209 -157 210 -166ZM107 -158 136 -165Q139 -156 142 -146Q144 -135 146 -125Q148 -116 149 -108L118 -100Q118 -108 116 -118Q114 -128 112 -138Q110 -149 107 -158ZM10 -209H100V-175H10ZM41 -129H98V-6H41V-39H67V-96H41ZM38 -191 71 -184Q66 -159 59 -135Q51 -110 41 -88Q30 -67 16 -51Q16 -56 14 -64Q12 -73 9 -82Q7 -91 4 -96Q17 -113 25 -138Q33 -164 38 -191ZM25 -129H55V12H25Z"], "咔": [256, "M101 -127H249V-91H101ZM146 -218H184V24H146ZM166 -185H236V-151H166ZM175 -54 199 -77Q207 -71 215 -63Q224 -56 233 -48Q241 -41 247 -36L221 -9Q216 -15 208 -23Q200 -31 191 -39Q183 -47 175 -54ZM34 -197H97V-41H34V-77H63V-162H34ZM15 -197H48V-20H15Z"], "咻": [256, "M140 -165H246V-133H140ZM176 -218H208V24H176ZM118 -219 150 -211Q144 -188 135 -166Q126 -143 116 -122Q105 -102 92 -87Q91 -91 87 -98Q84 -104 80 -110Q77 -117 73 -121Q88 -138 100 -165Q111 -191 118 -219ZM210 -145Q214 -131 218 -116Q222 -101 228 -87Q233 -73 239 -61Q246 -49 253 -40Q247 -36 240 -29Q233 -22 229 -16Q221 -30 213 -50Q206 -71 201 -94Q195 -118 192 -141ZM173 -145 193 -141Q189 -117 183 -93Q176 -69 168 -48Q160 -27 150 -12Q146 -18 139 -25Q132 -32 127 -36Q135 -46 142 -58Q148 -70 154 -85Q160 -99 165 -115Q169 -130 173 -145ZM102 -148 130 -176 133 -175V24H102ZM33 -198H86V-42H33V-76H56V-164H33ZM15 -198H46V-20H15Z"], "啵": [256, "M147 -186H229V-155H147ZM142 -120H226V-91H142ZM176 -218H209V-113H176ZM214 -120H220L226 -121L247 -114Q241 -81 230 -55Q219 -28 202 -9Q185 11 164 24Q160 18 154 10Q148 2 143 -3Q162 -13 177 -29Q191 -46 201 -68Q210 -90 214 -114ZM133 -186H166V-129Q166 -112 165 -93Q164 -73 161 -52Q158 -31 153 -12Q147 8 138 24Q135 21 129 18Q124 15 118 12Q113 9 108 8Q117 -7 122 -25Q127 -42 130 -61Q132 -79 133 -97Q133 -114 133 -129ZM219 -186H224L229 -187L251 -179Q249 -166 245 -152Q241 -137 238 -127L213 -140Q215 -148 217 -160Q218 -172 219 -182ZM179 -110Q184 -86 193 -65Q203 -45 218 -29Q232 -13 253 -4Q248 1 241 9Q235 18 231 24Q208 13 192 -6Q176 -25 166 -50Q156 -75 150 -105ZM83 -198 106 -215Q113 -208 121 -199Q129 -189 134 -183L109 -164Q105 -171 97 -181Q90 -190 83 -198ZM80 -125 104 -143Q109 -139 114 -133Q120 -127 125 -122Q131 -117 134 -113L109 -92Q106 -97 101 -102Q96 -108 91 -114Q85 -120 80 -125ZM73 6Q77 -4 81 -17Q85 -30 89 -45Q93 -60 97 -75L124 -61Q122 -47 118 -33Q115 -19 111 -6Q108 7 104 19ZM36 -196H86V-28H36V-58H54V-167H36ZM14 -196H46V-8H14Z"], "唰": [256, "M181 -195H208V-30H181ZM214 -216H243V-11Q243 0 241 6Q239 13 232 16Q226 20 216 21Q206 22 193 22Q192 16 189 8Q187 -1 184 -7Q192 -7 199 -7Q207 -6 209 -6Q212 -7 213 -8Q214 -9 214 -12ZM29 -200H74V-33H29V-66H47V-167H29ZM14 -200H40V-16H14ZM102 -111H167V-83H123V0H102ZM156 -111H178V-27Q178 -20 177 -14Q176 -8 172 -5Q168 -1 164 0Q161 1 155 1Q155 -5 153 -12Q151 -20 148 -26Q151 -26 152 -26Q154 -26 155 -26Q156 -26 156 -28ZM79 -209H109V-134Q109 -117 108 -97Q107 -77 104 -57Q101 -36 95 -16Q89 3 79 19Q76 17 71 14Q67 11 61 8Q56 5 52 4Q62 -11 67 -29Q73 -46 75 -65Q78 -83 79 -101Q79 -119 79 -134ZM100 -209H177V-140H100V-168H146V-181H100ZM126 -134H153V-90H151V25H129V-90H126Z"], "轰": [256, "M17 -81H102V-50H17ZM93 -81H100L106 -82L129 -73Q120 -46 105 -27Q90 -7 69 5Q48 18 22 26Q19 20 13 11Q8 3 3 -2Q25 -7 43 -18Q61 -28 74 -42Q87 -57 93 -76ZM18 -32 35 -58Q44 -53 55 -47Q66 -41 77 -35Q88 -29 98 -24Q108 -18 114 -13L96 17Q90 12 81 5Q71 -1 60 -8Q49 -14 38 -21Q27 -27 18 -32ZM129 -81H215V-50H129ZM207 -81H215L220 -82L243 -75Q234 -45 218 -25Q201 -5 177 8Q153 20 122 26Q120 22 118 15Q115 9 111 3Q108 -3 105 -7Q132 -11 153 -20Q174 -28 188 -43Q201 -57 207 -77ZM159 -52Q170 -32 194 -22Q218 -11 254 -8Q248 -3 242 6Q237 15 233 23Q195 17 170 0Q146 -17 132 -47ZM15 -205H241V-177H15ZM119 -173H156V-84H119ZM46 -130Q45 -134 43 -140Q41 -146 39 -153Q37 -160 35 -165Q39 -166 44 -169Q48 -171 53 -175Q57 -178 64 -185Q71 -192 80 -202Q88 -211 95 -222L136 -211Q126 -198 114 -187Q103 -175 91 -165Q79 -155 68 -147V-147Q68 -147 64 -145Q61 -143 57 -141Q53 -138 50 -135Q46 -132 46 -130ZM46 -130V-154L63 -164H220L220 -134H76Q65 -134 57 -133Q48 -132 46 -130ZM15 -126H243V-98H15Z"], "!": [102, "M36 -69 29 -156 28 -196H74L72 -156L66 -69ZM51 4Q39 4 31 -5Q24 -13 24 -25Q24 -37 31 -45Q39 -53 51 -53Q63 -53 70 -45Q78 -37 78 -25Q78 -13 70 -5Q63 4 51 4Z"], }, };
似ているブロック
- Pro
- Pro


