@olegkoval/agent-skills 1.59.3 → 1.61.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/copilot-instructions.md +2 -0
- package/.github/prompts/carousel-maker.prompt.md +102 -0
- package/.github/prompts/self-critique.prompt.md +167 -43
- package/.github/prompts/shorts-animator.prompt.md +103 -0
- package/.kiro/steering/carousel-maker.md +101 -0
- package/.kiro/steering/shorts-animator.md +102 -0
- package/.windsurf/rules/carousel-maker.md +100 -0
- package/.windsurf/rules/shorts-animator.md +101 -0
- package/README.md +5 -3
- package/adapters/claude/olko-creative/skills/carousel-maker/SKILL.md +112 -0
- package/adapters/claude/olko-creative/skills/carousel-maker/scripts/cm.ts +220 -0
- package/adapters/claude/olko-creative/skills/carousel-maker/scripts/domain/check.ts +68 -0
- package/adapters/claude/olko-creative/skills/carousel-maker/scripts/domain/layout.ts +75 -0
- package/adapters/claude/olko-creative/skills/carousel-maker/scripts/domain/schema.ts +54 -0
- package/adapters/claude/olko-creative/skills/carousel-maker/scripts/domain/types.ts +33 -0
- package/adapters/claude/olko-creative/skills/carousel-maker/scripts/edge/io.ts +87 -0
- package/adapters/claude/olko-creative/skills/carousel-maker/scripts/package.json +4 -0
- package/adapters/claude/olko-creative/skills/carousel-maker/scripts/test/domain.test.ts +99 -0
- package/adapters/claude/olko-creative/skills/carousel-maker/scripts/tsconfig.json +16 -0
- package/adapters/claude/olko-creative/skills/shorts-animator/SKILL.md +113 -0
- package/adapters/claude/olko-creative/skills/shorts-animator/references/kit.md +59 -0
- package/adapters/claude/olko-creative/skills/shorts-animator/references/looks.md +32 -0
- package/adapters/claude/olko-creative/skills/shorts-animator/references/writing.md +9 -0
- package/adapters/claude/olko-creative/skills/shorts-animator/scripts/audio/compose.ts +290 -0
- package/adapters/claude/olko-creative/skills/shorts-animator/scripts/audio/dsp.ts +193 -0
- package/adapters/claude/olko-creative/skills/shorts-animator/scripts/audio/instruments.ts +185 -0
- package/adapters/claude/olko-creative/skills/shorts-animator/scripts/audio/master.ts +55 -0
- package/adapters/claude/olko-creative/skills/shorts-animator/scripts/audio/soundtrack.ts +119 -0
- package/adapters/claude/olko-creative/skills/shorts-animator/scripts/domain/captions.ts +35 -0
- package/adapters/claude/olko-creative/skills/shorts-animator/scripts/domain/check.ts +96 -0
- package/adapters/claude/olko-creative/skills/shorts-animator/scripts/domain/look.ts +26 -0
- package/adapters/claude/olko-creative/skills/shorts-animator/scripts/domain/patch.ts +38 -0
- package/adapters/claude/olko-creative/skills/shorts-animator/scripts/domain/schema.ts +81 -0
- package/adapters/claude/olko-creative/skills/shorts-animator/scripts/domain/timeline.ts +75 -0
- package/adapters/claude/olko-creative/skills/shorts-animator/scripts/domain/types.ts +91 -0
- package/adapters/claude/olko-creative/skills/shorts-animator/scripts/edge/chrome.ts +169 -0
- package/adapters/claude/olko-creative/skills/shorts-animator/scripts/edge/doctor.ts +52 -0
- package/adapters/claude/olko-creative/skills/shorts-animator/scripts/edge/media.ts +105 -0
- package/adapters/claude/olko-creative/skills/shorts-animator/scripts/edge/page.ts +53 -0
- package/adapters/claude/olko-creative/skills/shorts-animator/scripts/edge/probe.ts +75 -0
- package/adapters/claude/olko-creative/skills/shorts-animator/scripts/edge/sound.ts +46 -0
- package/adapters/claude/olko-creative/skills/shorts-animator/scripts/edge/voice.ts +183 -0
- package/adapters/claude/olko-creative/skills/shorts-animator/scripts/looks/gouache.json +7 -0
- package/adapters/claude/olko-creative/skills/shorts-animator/scripts/looks/ink.json +6 -0
- package/adapters/claude/olko-creative/skills/shorts-animator/scripts/looks/oil.json +7 -0
- package/adapters/claude/olko-creative/skills/shorts-animator/scripts/looks/pastel.json +7 -0
- package/adapters/claude/olko-creative/skills/shorts-animator/scripts/looks/watercolor.json +6 -0
- package/adapters/claude/olko-creative/skills/shorts-animator/scripts/package.json +4 -0
- package/adapters/claude/olko-creative/skills/shorts-animator/scripts/runtime/globals.d.ts +199 -0
- package/adapters/claude/olko-creative/skills/shorts-animator/scripts/runtime/kit.ts +856 -0
- package/adapters/claude/olko-creative/skills/shorts-animator/scripts/runtime/paint.ts +268 -0
- package/adapters/claude/olko-creative/skills/shorts-animator/scripts/runtime/stage.ts +181 -0
- package/adapters/claude/olko-creative/skills/shorts-animator/scripts/runtime/tsconfig.json +12 -0
- package/adapters/claude/olko-creative/skills/shorts-animator/scripts/sa.ts +262 -0
- package/adapters/claude/olko-creative/skills/shorts-animator/scripts/test/domain.test.ts +107 -0
- package/adapters/claude/olko-creative/skills/shorts-animator/scripts/tsconfig.json +16 -0
- package/adapters/claude/olko-creative/skills/shorts-animator/scripts/tts.py +20 -0
- package/adapters/claude/olko-reflection/skills/self-critique/SKILL.md +167 -43
- package/adapters/claude/olko-reflection/skills/self-critique/scripts/claim-ledger.mjs +159 -0
- package/adapters/claude/olko-reflection/skills/self-critique/scripts/rule-store.mjs +193 -0
- package/adapters/codex/olko-creative/README.md +2 -0
- package/adapters/cursor/olko-creative/skills/carousel-maker/SKILL.md +112 -0
- package/adapters/cursor/olko-creative/skills/carousel-maker/scripts/cm.ts +220 -0
- package/adapters/cursor/olko-creative/skills/carousel-maker/scripts/domain/check.ts +68 -0
- package/adapters/cursor/olko-creative/skills/carousel-maker/scripts/domain/layout.ts +75 -0
- package/adapters/cursor/olko-creative/skills/carousel-maker/scripts/domain/schema.ts +54 -0
- package/adapters/cursor/olko-creative/skills/carousel-maker/scripts/domain/types.ts +33 -0
- package/adapters/cursor/olko-creative/skills/carousel-maker/scripts/edge/io.ts +87 -0
- package/adapters/cursor/olko-creative/skills/carousel-maker/scripts/package.json +4 -0
- package/adapters/cursor/olko-creative/skills/carousel-maker/scripts/test/domain.test.ts +99 -0
- package/adapters/cursor/olko-creative/skills/carousel-maker/scripts/tsconfig.json +16 -0
- package/adapters/cursor/olko-creative/skills/shorts-animator/SKILL.md +113 -0
- package/adapters/cursor/olko-creative/skills/shorts-animator/references/kit.md +59 -0
- package/adapters/cursor/olko-creative/skills/shorts-animator/references/looks.md +32 -0
- package/adapters/cursor/olko-creative/skills/shorts-animator/references/writing.md +9 -0
- package/adapters/cursor/olko-creative/skills/shorts-animator/scripts/audio/compose.ts +290 -0
- package/adapters/cursor/olko-creative/skills/shorts-animator/scripts/audio/dsp.ts +193 -0
- package/adapters/cursor/olko-creative/skills/shorts-animator/scripts/audio/instruments.ts +185 -0
- package/adapters/cursor/olko-creative/skills/shorts-animator/scripts/audio/master.ts +55 -0
- package/adapters/cursor/olko-creative/skills/shorts-animator/scripts/audio/soundtrack.ts +119 -0
- package/adapters/cursor/olko-creative/skills/shorts-animator/scripts/domain/captions.ts +35 -0
- package/adapters/cursor/olko-creative/skills/shorts-animator/scripts/domain/check.ts +96 -0
- package/adapters/cursor/olko-creative/skills/shorts-animator/scripts/domain/look.ts +26 -0
- package/adapters/cursor/olko-creative/skills/shorts-animator/scripts/domain/patch.ts +38 -0
- package/adapters/cursor/olko-creative/skills/shorts-animator/scripts/domain/schema.ts +81 -0
- package/adapters/cursor/olko-creative/skills/shorts-animator/scripts/domain/timeline.ts +75 -0
- package/adapters/cursor/olko-creative/skills/shorts-animator/scripts/domain/types.ts +91 -0
- package/adapters/cursor/olko-creative/skills/shorts-animator/scripts/edge/chrome.ts +169 -0
- package/adapters/cursor/olko-creative/skills/shorts-animator/scripts/edge/doctor.ts +52 -0
- package/adapters/cursor/olko-creative/skills/shorts-animator/scripts/edge/media.ts +105 -0
- package/adapters/cursor/olko-creative/skills/shorts-animator/scripts/edge/page.ts +53 -0
- package/adapters/cursor/olko-creative/skills/shorts-animator/scripts/edge/probe.ts +75 -0
- package/adapters/cursor/olko-creative/skills/shorts-animator/scripts/edge/sound.ts +46 -0
- package/adapters/cursor/olko-creative/skills/shorts-animator/scripts/edge/voice.ts +183 -0
- package/adapters/cursor/olko-creative/skills/shorts-animator/scripts/looks/gouache.json +7 -0
- package/adapters/cursor/olko-creative/skills/shorts-animator/scripts/looks/ink.json +6 -0
- package/adapters/cursor/olko-creative/skills/shorts-animator/scripts/looks/oil.json +7 -0
- package/adapters/cursor/olko-creative/skills/shorts-animator/scripts/looks/pastel.json +7 -0
- package/adapters/cursor/olko-creative/skills/shorts-animator/scripts/looks/watercolor.json +6 -0
- package/adapters/cursor/olko-creative/skills/shorts-animator/scripts/package.json +4 -0
- package/adapters/cursor/olko-creative/skills/shorts-animator/scripts/runtime/globals.d.ts +199 -0
- package/adapters/cursor/olko-creative/skills/shorts-animator/scripts/runtime/kit.ts +856 -0
- package/adapters/cursor/olko-creative/skills/shorts-animator/scripts/runtime/paint.ts +268 -0
- package/adapters/cursor/olko-creative/skills/shorts-animator/scripts/runtime/stage.ts +181 -0
- package/adapters/cursor/olko-creative/skills/shorts-animator/scripts/runtime/tsconfig.json +12 -0
- package/adapters/cursor/olko-creative/skills/shorts-animator/scripts/sa.ts +262 -0
- package/adapters/cursor/olko-creative/skills/shorts-animator/scripts/test/domain.test.ts +107 -0
- package/adapters/cursor/olko-creative/skills/shorts-animator/scripts/tsconfig.json +16 -0
- package/adapters/cursor/olko-creative/skills/shorts-animator/scripts/tts.py +20 -0
- package/adapters/cursor/olko-reflection/skills/self-critique/SKILL.md +167 -43
- package/adapters/cursor/olko-reflection/skills/self-critique/scripts/claim-ledger.mjs +159 -0
- package/adapters/cursor/olko-reflection/skills/self-critique/scripts/rule-store.mjs +193 -0
- package/adapters/grok/olko-creative/skills/carousel-maker/SKILL.md +112 -0
- package/adapters/grok/olko-creative/skills/carousel-maker/scripts/cm.ts +220 -0
- package/adapters/grok/olko-creative/skills/carousel-maker/scripts/domain/check.ts +68 -0
- package/adapters/grok/olko-creative/skills/carousel-maker/scripts/domain/layout.ts +75 -0
- package/adapters/grok/olko-creative/skills/carousel-maker/scripts/domain/schema.ts +54 -0
- package/adapters/grok/olko-creative/skills/carousel-maker/scripts/domain/types.ts +33 -0
- package/adapters/grok/olko-creative/skills/carousel-maker/scripts/edge/io.ts +87 -0
- package/adapters/grok/olko-creative/skills/carousel-maker/scripts/package.json +4 -0
- package/adapters/grok/olko-creative/skills/carousel-maker/scripts/test/domain.test.ts +99 -0
- package/adapters/grok/olko-creative/skills/carousel-maker/scripts/tsconfig.json +16 -0
- package/adapters/grok/olko-creative/skills/shorts-animator/SKILL.md +113 -0
- package/adapters/grok/olko-creative/skills/shorts-animator/references/kit.md +59 -0
- package/adapters/grok/olko-creative/skills/shorts-animator/references/looks.md +32 -0
- package/adapters/grok/olko-creative/skills/shorts-animator/references/writing.md +9 -0
- package/adapters/grok/olko-creative/skills/shorts-animator/scripts/audio/compose.ts +290 -0
- package/adapters/grok/olko-creative/skills/shorts-animator/scripts/audio/dsp.ts +193 -0
- package/adapters/grok/olko-creative/skills/shorts-animator/scripts/audio/instruments.ts +185 -0
- package/adapters/grok/olko-creative/skills/shorts-animator/scripts/audio/master.ts +55 -0
- package/adapters/grok/olko-creative/skills/shorts-animator/scripts/audio/soundtrack.ts +119 -0
- package/adapters/grok/olko-creative/skills/shorts-animator/scripts/domain/captions.ts +35 -0
- package/adapters/grok/olko-creative/skills/shorts-animator/scripts/domain/check.ts +96 -0
- package/adapters/grok/olko-creative/skills/shorts-animator/scripts/domain/look.ts +26 -0
- package/adapters/grok/olko-creative/skills/shorts-animator/scripts/domain/patch.ts +38 -0
- package/adapters/grok/olko-creative/skills/shorts-animator/scripts/domain/schema.ts +81 -0
- package/adapters/grok/olko-creative/skills/shorts-animator/scripts/domain/timeline.ts +75 -0
- package/adapters/grok/olko-creative/skills/shorts-animator/scripts/domain/types.ts +91 -0
- package/adapters/grok/olko-creative/skills/shorts-animator/scripts/edge/chrome.ts +169 -0
- package/adapters/grok/olko-creative/skills/shorts-animator/scripts/edge/doctor.ts +52 -0
- package/adapters/grok/olko-creative/skills/shorts-animator/scripts/edge/media.ts +105 -0
- package/adapters/grok/olko-creative/skills/shorts-animator/scripts/edge/page.ts +53 -0
- package/adapters/grok/olko-creative/skills/shorts-animator/scripts/edge/probe.ts +75 -0
- package/adapters/grok/olko-creative/skills/shorts-animator/scripts/edge/sound.ts +46 -0
- package/adapters/grok/olko-creative/skills/shorts-animator/scripts/edge/voice.ts +183 -0
- package/adapters/grok/olko-creative/skills/shorts-animator/scripts/looks/gouache.json +7 -0
- package/adapters/grok/olko-creative/skills/shorts-animator/scripts/looks/ink.json +6 -0
- package/adapters/grok/olko-creative/skills/shorts-animator/scripts/looks/oil.json +7 -0
- package/adapters/grok/olko-creative/skills/shorts-animator/scripts/looks/pastel.json +7 -0
- package/adapters/grok/olko-creative/skills/shorts-animator/scripts/looks/watercolor.json +6 -0
- package/adapters/grok/olko-creative/skills/shorts-animator/scripts/package.json +4 -0
- package/adapters/grok/olko-creative/skills/shorts-animator/scripts/runtime/globals.d.ts +199 -0
- package/adapters/grok/olko-creative/skills/shorts-animator/scripts/runtime/kit.ts +856 -0
- package/adapters/grok/olko-creative/skills/shorts-animator/scripts/runtime/paint.ts +268 -0
- package/adapters/grok/olko-creative/skills/shorts-animator/scripts/runtime/stage.ts +181 -0
- package/adapters/grok/olko-creative/skills/shorts-animator/scripts/runtime/tsconfig.json +12 -0
- package/adapters/grok/olko-creative/skills/shorts-animator/scripts/sa.ts +262 -0
- package/adapters/grok/olko-creative/skills/shorts-animator/scripts/test/domain.test.ts +107 -0
- package/adapters/grok/olko-creative/skills/shorts-animator/scripts/tsconfig.json +16 -0
- package/adapters/grok/olko-creative/skills/shorts-animator/scripts/tts.py +20 -0
- package/adapters/grok/olko-reflection/skills/self-critique/SKILL.md +167 -43
- package/adapters/grok/olko-reflection/skills/self-critique/scripts/claim-ledger.mjs +159 -0
- package/adapters/grok/olko-reflection/skills/self-critique/scripts/rule-store.mjs +193 -0
- package/adapters/hermes/olko-creative/README.md +2 -0
- package/catalog/skills.json +47 -1
- package/docs/superpowers/plans/2026-10-27-self-critique-v2.md +306 -0
- package/docs/superpowers/specs/2026-10-27-self-critique-v2-spec.md +104 -0
- package/package.json +1 -1
- package/plugins/olko-apple-kit/.claude-plugin/plugin.json +1 -1
- package/plugins/olko-creative/.claude-plugin/plugin.json +1 -1
- package/plugins/olko-creative/skills/carousel-maker/SKILL.md +111 -0
- package/plugins/olko-creative/skills/carousel-maker/scripts/cm.ts +220 -0
- package/plugins/olko-creative/skills/carousel-maker/scripts/domain/check.ts +68 -0
- package/plugins/olko-creative/skills/carousel-maker/scripts/domain/layout.ts +75 -0
- package/plugins/olko-creative/skills/carousel-maker/scripts/domain/schema.ts +54 -0
- package/plugins/olko-creative/skills/carousel-maker/scripts/domain/types.ts +33 -0
- package/plugins/olko-creative/skills/carousel-maker/scripts/edge/io.ts +87 -0
- package/plugins/olko-creative/skills/carousel-maker/scripts/package.json +4 -0
- package/plugins/olko-creative/skills/carousel-maker/scripts/test/domain.test.ts +99 -0
- package/plugins/olko-creative/skills/carousel-maker/scripts/tsconfig.json +16 -0
- package/plugins/olko-creative/skills/shorts-animator/SKILL.md +112 -0
- package/plugins/olko-creative/skills/shorts-animator/references/kit.md +59 -0
- package/plugins/olko-creative/skills/shorts-animator/references/looks.md +32 -0
- package/plugins/olko-creative/skills/shorts-animator/references/writing.md +9 -0
- package/plugins/olko-creative/skills/shorts-animator/scripts/audio/compose.ts +290 -0
- package/plugins/olko-creative/skills/shorts-animator/scripts/audio/dsp.ts +193 -0
- package/plugins/olko-creative/skills/shorts-animator/scripts/audio/instruments.ts +185 -0
- package/plugins/olko-creative/skills/shorts-animator/scripts/audio/master.ts +55 -0
- package/plugins/olko-creative/skills/shorts-animator/scripts/audio/soundtrack.ts +119 -0
- package/plugins/olko-creative/skills/shorts-animator/scripts/domain/captions.ts +35 -0
- package/plugins/olko-creative/skills/shorts-animator/scripts/domain/check.ts +96 -0
- package/plugins/olko-creative/skills/shorts-animator/scripts/domain/look.ts +26 -0
- package/plugins/olko-creative/skills/shorts-animator/scripts/domain/patch.ts +38 -0
- package/plugins/olko-creative/skills/shorts-animator/scripts/domain/schema.ts +81 -0
- package/plugins/olko-creative/skills/shorts-animator/scripts/domain/timeline.ts +75 -0
- package/plugins/olko-creative/skills/shorts-animator/scripts/domain/types.ts +91 -0
- package/plugins/olko-creative/skills/shorts-animator/scripts/edge/chrome.ts +169 -0
- package/plugins/olko-creative/skills/shorts-animator/scripts/edge/doctor.ts +52 -0
- package/plugins/olko-creative/skills/shorts-animator/scripts/edge/media.ts +105 -0
- package/plugins/olko-creative/skills/shorts-animator/scripts/edge/page.ts +53 -0
- package/plugins/olko-creative/skills/shorts-animator/scripts/edge/probe.ts +75 -0
- package/plugins/olko-creative/skills/shorts-animator/scripts/edge/sound.ts +46 -0
- package/plugins/olko-creative/skills/shorts-animator/scripts/edge/voice.ts +183 -0
- package/plugins/olko-creative/skills/shorts-animator/scripts/looks/gouache.json +7 -0
- package/plugins/olko-creative/skills/shorts-animator/scripts/looks/ink.json +6 -0
- package/plugins/olko-creative/skills/shorts-animator/scripts/looks/oil.json +7 -0
- package/plugins/olko-creative/skills/shorts-animator/scripts/looks/pastel.json +7 -0
- package/plugins/olko-creative/skills/shorts-animator/scripts/looks/watercolor.json +6 -0
- package/plugins/olko-creative/skills/shorts-animator/scripts/package.json +4 -0
- package/plugins/olko-creative/skills/shorts-animator/scripts/runtime/globals.d.ts +199 -0
- package/plugins/olko-creative/skills/shorts-animator/scripts/runtime/kit.ts +856 -0
- package/plugins/olko-creative/skills/shorts-animator/scripts/runtime/paint.ts +268 -0
- package/plugins/olko-creative/skills/shorts-animator/scripts/runtime/stage.ts +181 -0
- package/plugins/olko-creative/skills/shorts-animator/scripts/runtime/tsconfig.json +12 -0
- package/plugins/olko-creative/skills/shorts-animator/scripts/sa.ts +262 -0
- package/plugins/olko-creative/skills/shorts-animator/scripts/test/domain.test.ts +107 -0
- package/plugins/olko-creative/skills/shorts-animator/scripts/tsconfig.json +16 -0
- package/plugins/olko-creative/skills/shorts-animator/scripts/tts.py +20 -0
- package/plugins/olko-garmin-kit/.claude-plugin/plugin.json +1 -1
- package/plugins/olko-git-tools/.claude-plugin/plugin.json +1 -1
- package/plugins/olko-github-pr/.claude-plugin/plugin.json +1 -1
- package/plugins/olko-obsidian/.claude-plugin/plugin.json +1 -1
- package/plugins/olko-product/.claude-plugin/plugin.json +1 -1
- package/plugins/olko-reflection/.claude-plugin/plugin.json +1 -1
- package/plugins/olko-reflection/skills/self-critique/SKILL.md +167 -43
- package/plugins/olko-reflection/skills/self-critique/scripts/claim-ledger.mjs +159 -0
- package/plugins/olko-reflection/skills/self-critique/scripts/rule-store.mjs +193 -0
- package/plugins/olko-release/.claude-plugin/plugin.json +1 -1
- package/plugins/olko-skill-meta/.claude-plugin/plugin.json +1 -1
- package/plugins/olko-web-ops/.claude-plugin/plugin.json +1 -1
- package/scripts/lib/catalog.mjs +2 -1
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Ambient types shared by kit.ts, paint.ts and stage.ts. This file is a script
|
|
3
|
+
* (no import/export), so everything here is global. It is never shipped: the
|
|
4
|
+
* three runtime scripts are type-stripped and loaded as classic <script> tags.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
type Pt = [number, number];
|
|
8
|
+
type Seed = number | string;
|
|
9
|
+
type Palette = Record<string, string>;
|
|
10
|
+
type Rng = () => number;
|
|
11
|
+
|
|
12
|
+
/* ---------- the timeline the CLI builds (window.SHORT) ---------- */
|
|
13
|
+
|
|
14
|
+
interface PaintLook {
|
|
15
|
+
mode?: string;
|
|
16
|
+
brush?: number; length?: number; layers?: number; swirl?: number; flow?: number; curve?: number;
|
|
17
|
+
bristle?: number; impasto?: number; hueJitter?: number; valueJitter?: number; satJitter?: number;
|
|
18
|
+
respect?: number; boil?: number; paper?: number; grain?: number; wash?: number; bleed?: number;
|
|
19
|
+
outline?: number; ink?: string; paperColor?: string; posterize?: number; saturation?: number;
|
|
20
|
+
contrast?: number; warmth?: number; vignette?: number; bloom?: number;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
type PaintSettings = Required<PaintLook>;
|
|
24
|
+
|
|
25
|
+
type PaintNumberKey =
|
|
26
|
+
| "brush" | "length" | "layers" | "swirl" | "flow" | "curve" | "bristle" | "impasto"
|
|
27
|
+
| "hueJitter" | "valueJitter" | "satJitter" | "respect" | "boil" | "paper" | "grain"
|
|
28
|
+
| "wash" | "bleed" | "outline" | "posterize" | "saturation" | "contrast" | "warmth"
|
|
29
|
+
| "vignette" | "bloom";
|
|
30
|
+
|
|
31
|
+
interface Captions {
|
|
32
|
+
style?: string; size?: number; weight?: number | string; font?: string; case?: string;
|
|
33
|
+
width?: number; y?: number; box?: string; color?: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
interface Look extends PaintLook {
|
|
37
|
+
palette?: Palette;
|
|
38
|
+
captions?: Captions;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
interface Beat {
|
|
42
|
+
line: number; scene: string; start: number; dur: number;
|
|
43
|
+
move?: string; moveAmount?: number; seed?: Seed; transition?: string; fadeDur?: number;
|
|
44
|
+
say?: string; caption?: string;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
interface CaptionChunk { at: number; end: number; text: string }
|
|
48
|
+
|
|
49
|
+
interface Short {
|
|
50
|
+
W: number; H: number; fps: number; twos: number; duration: number;
|
|
51
|
+
beats: Beat[]; track?: CaptionChunk[]; voiceAt?: number[];
|
|
52
|
+
look: Look; captions?: Captions;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/* ---------- options each kit helper takes (all optional unless marked) ---------- */
|
|
56
|
+
|
|
57
|
+
type SkyStop = string | [number, string];
|
|
58
|
+
|
|
59
|
+
interface SkyOpts { stops?: SkyStop[]; y0?: number; y1?: number }
|
|
60
|
+
interface CloudsOpts {
|
|
61
|
+
y?: number; band?: number; n?: number; color?: string; shade?: string | null; size?: number;
|
|
62
|
+
drift?: number; seed?: Seed; opacity?: number; perspective?: boolean;
|
|
63
|
+
}
|
|
64
|
+
interface SunOpts { x?: number; y?: number; r?: number; color?: string; glow?: string; glowSize?: number; glowAlpha?: number }
|
|
65
|
+
interface GlowOpts { x: number; y: number; r?: number; color?: string; a?: number }
|
|
66
|
+
interface StarsOpts { n?: number; y1?: number; color?: string; size?: number; seed?: Seed }
|
|
67
|
+
interface RaysOpts {
|
|
68
|
+
x?: number; y?: number; angle?: number; spread?: number; n?: number; length?: number;
|
|
69
|
+
color?: string; a?: number; width?: number;
|
|
70
|
+
}
|
|
71
|
+
interface RainOpts { n?: number; color?: string; a?: number; slant?: number; length?: number; speed?: number; seed?: Seed }
|
|
72
|
+
interface MotesOpts { n?: number; y0?: number; y1?: number; color?: string; r?: number; seed?: Seed }
|
|
73
|
+
interface HazeOpts { y?: number; h?: number; color?: string; a?: number }
|
|
74
|
+
interface RidgeOpts {
|
|
75
|
+
y?: number; amp?: number; freq?: number; color?: string; shape?: string; seed?: Seed;
|
|
76
|
+
to?: number; x0?: number; x1?: number; top?: string | null;
|
|
77
|
+
}
|
|
78
|
+
interface GroundOpts {
|
|
79
|
+
y?: number; color?: string; far?: string | null; stripes?: number; stripe?: string | null;
|
|
80
|
+
flowers?: number; flower?: string; seed?: Seed;
|
|
81
|
+
}
|
|
82
|
+
interface PathOpts { x?: number; y?: number; near?: number; far?: number; color?: string; to?: number; bend?: number }
|
|
83
|
+
interface WaterOpts {
|
|
84
|
+
y0?: number; y1?: number; color?: string; deep?: string; glint?: string; glints?: number;
|
|
85
|
+
seed?: Seed; speed?: number;
|
|
86
|
+
}
|
|
87
|
+
interface WaterfallOpts { x?: number; w?: number; y0?: number; y1?: number; color?: string; shade?: string; speed?: number }
|
|
88
|
+
interface TreeOpts {
|
|
89
|
+
x?: number; y?: number; h?: number; kind?: string; crown?: string; trunk?: string;
|
|
90
|
+
fruit?: string | null; seed?: Seed;
|
|
91
|
+
}
|
|
92
|
+
interface TreesOpts {
|
|
93
|
+
n?: number; y?: number; h?: number; x0?: number; x1?: number; kind?: string; crown?: string;
|
|
94
|
+
trunk?: string; jitter?: number; seed?: Seed;
|
|
95
|
+
}
|
|
96
|
+
interface FoliageOpts {
|
|
97
|
+
side?: string; x?: number | null; y0?: number; y1?: number; depth?: number;
|
|
98
|
+
color?: string; light?: string; seed?: Seed;
|
|
99
|
+
}
|
|
100
|
+
interface TrunksOpts {
|
|
101
|
+
n?: number; color?: string; light?: string; y1?: number; seed?: Seed; x0?: number; x1?: number; width?: number;
|
|
102
|
+
}
|
|
103
|
+
interface HouseOpts {
|
|
104
|
+
x?: number; y?: number; w?: number; h?: number; wall?: string; roof?: string; window?: string;
|
|
105
|
+
lit?: boolean; litColor?: string; floors?: number; aFrame?: boolean;
|
|
106
|
+
}
|
|
107
|
+
interface CityOpts {
|
|
108
|
+
y?: number; h?: number; color?: string; lit?: boolean; litColor?: string; density?: number;
|
|
109
|
+
n?: number; seed?: Seed; x0?: number; x1?: number;
|
|
110
|
+
}
|
|
111
|
+
interface PagodaOpts { x?: number; y?: number; h?: number; color?: string; tiers?: number }
|
|
112
|
+
interface PoleOpts { x?: number; y?: number; h?: number; color?: string; wires?: number }
|
|
113
|
+
interface BlockOpts { x0: number; y0: number; x1: number; y1: number; color?: string; edge?: string | null; edgeWidth?: number }
|
|
114
|
+
interface LampOpts { x?: number; y?: number; h?: number; color?: string; light?: string; pool?: boolean }
|
|
115
|
+
interface ShapeOpts { pts: Pt[]; color?: string; smooth?: boolean }
|
|
116
|
+
interface HeartOpts { x?: number; y?: number; s?: number; color?: string }
|
|
117
|
+
interface PersonOpts {
|
|
118
|
+
x?: number; y?: number; h?: number; pose?: string; facing?: string; hair?: string;
|
|
119
|
+
skin?: string; hairColor?: string; top?: string; bottom?: string; shoes?: string;
|
|
120
|
+
robe?: boolean; rim?: string | null; silhouette?: string | null; walk?: number; dx?: number;
|
|
121
|
+
scale?: number; flip?: boolean; build?: number;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/* ---------- the kit a scene receives: (k) => { ... } ---------- */
|
|
125
|
+
|
|
126
|
+
interface Kit {
|
|
127
|
+
g: CanvasRenderingContext2D;
|
|
128
|
+
W: number; H: number; u: number; t: number; p: number;
|
|
129
|
+
r: Rng;
|
|
130
|
+
pal: Palette;
|
|
131
|
+
beat: Beat;
|
|
132
|
+
mix: (a: string, b: string, t: number) => string;
|
|
133
|
+
alpha: (c: string, a: number) => string;
|
|
134
|
+
rng: (seed: number) => Rng;
|
|
135
|
+
noise1: (seed: number) => (x: number) => number;
|
|
136
|
+
X: (x: number) => number;
|
|
137
|
+
Y: (y: number) => number;
|
|
138
|
+
sky: (o?: SkyOpts) => void;
|
|
139
|
+
clouds: (o?: CloudsOpts) => void;
|
|
140
|
+
sun: (o?: SunOpts) => void;
|
|
141
|
+
glow: (o: GlowOpts) => void;
|
|
142
|
+
stars: (o?: StarsOpts) => void;
|
|
143
|
+
rays: (o?: RaysOpts) => void;
|
|
144
|
+
rain: (o?: RainOpts) => void;
|
|
145
|
+
motes: (o?: MotesOpts) => void;
|
|
146
|
+
haze: (o?: HazeOpts) => void;
|
|
147
|
+
ridge: (o?: RidgeOpts) => void;
|
|
148
|
+
ground: (o?: GroundOpts) => void;
|
|
149
|
+
path: (o?: PathOpts) => void;
|
|
150
|
+
water: (o?: WaterOpts) => void;
|
|
151
|
+
waterfall: (o?: WaterfallOpts) => void;
|
|
152
|
+
tree: (o?: TreeOpts) => void;
|
|
153
|
+
trees: (o?: TreesOpts) => void;
|
|
154
|
+
foliage: (o?: FoliageOpts) => void;
|
|
155
|
+
trunks: (o?: TrunksOpts) => void;
|
|
156
|
+
house: (o?: HouseOpts) => void;
|
|
157
|
+
city: (o?: CityOpts) => void;
|
|
158
|
+
pagoda: (o?: PagodaOpts) => void;
|
|
159
|
+
pole: (o?: PoleOpts) => void;
|
|
160
|
+
block: (o: BlockOpts) => void;
|
|
161
|
+
lamp: (o?: LampOpts) => void;
|
|
162
|
+
shape: (o: ShapeOpts) => void;
|
|
163
|
+
heart: (o?: HeartOpts) => void;
|
|
164
|
+
person: (o?: PersonOpts) => void;
|
|
165
|
+
people: (list: PersonOpts[]) => void;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
type SceneFn = (k: Kit) => void;
|
|
169
|
+
|
|
170
|
+
interface ShortsKitApi {
|
|
171
|
+
make: (
|
|
172
|
+
g: CanvasRenderingContext2D, W: number, H: number, t: number, p: number,
|
|
173
|
+
seed: number, pal: Palette | undefined, beat: Beat,
|
|
174
|
+
) => Kit;
|
|
175
|
+
rng: (seed: number) => Rng;
|
|
176
|
+
hashStr: (s: Seed) => number;
|
|
177
|
+
mix: (a: string, b: string, t: number) => string;
|
|
178
|
+
alpha: (c: string, a: number) => string;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
interface Painter {
|
|
182
|
+
paint: (flat: HTMLCanvasElement, look: PaintLook, tick: number) => void;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
interface ShortsPaintApi {
|
|
186
|
+
Painter: (canvas: HTMLCanvasElement) => Painter;
|
|
187
|
+
DEFAULTS: PaintSettings;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
interface Window {
|
|
191
|
+
SHORT: Short;
|
|
192
|
+
IMAGES: Record<string, HTMLImageElement>;
|
|
193
|
+
SCENES: Record<string, SceneFn | undefined>;
|
|
194
|
+
ShortsKit: ShortsKitApi;
|
|
195
|
+
ShortsPaint: ShortsPaintApi;
|
|
196
|
+
drawing: (d: number) => string;
|
|
197
|
+
still: (i: number, at: number) => string;
|
|
198
|
+
ready: boolean;
|
|
199
|
+
}
|