Skip to content

chuspeeism/dashi-ppt-skill / skills/dashi-ppt

dashi-ppt

Flagged

制作 PPT、演示文稿、幻灯片、汇报材料时使用。Dashi PPT 基于预置视觉主题组合页面,生成可离线打开、可在浏览器编辑的 HTML 演示,支持导出 PPTX / PDF 文件。

FileKindSize
.gitignoreother173 B
README.mdmarkdown3.9 KB
SKILL.mdskill md25.4 KB
agents/openai.yamlconfig292 B
assets/skill/dashi-ppt-favicon.pngbinary2.0 KB
assets/skill/dashi-ppt-small.pngbinary895 B
assets/skill/dashi-ppt.pngbinary12.6 KB
assets/skill/theme-style-grid.pngbinary2.1 MB
project/.npmrcother40 B
project/assets/skill/dashi-ppt-favicon.pngbinary2.0 KB
project/assets/social-icons/bilibili.svgother7.9 KB
project/assets/social-icons/douyin.svgother4.7 KB
project/assets/social-icons/github.svgother1.3 KB
project/assets/social-icons/redbook.svgother3.5 KB
project/assets/template-swiss.htmlother465.5 KB
project/assets/ui-icons/sidebar.svgother1.3 KB
project/assets/unicorn/automations_remix_scene.jsonconfig42.9 KB
project/assets/unicorn/goey_balls_remix_scene.jsonconfig14.2 KB
project/assets/unicorn/media/blue_noise_med.pngbinary206.4 KB
project/assets/unicorn/media/font_atlas.pngbinary64.6 KB
project/assets/unicorn/moving_into_remix_scene.jsonconfig67.8 KB
project/assets/unicorn/tech_background_remix_scene.jsonconfig52.2 KB
project/distribution-source.jsonconfig517 B
project/i18n/zh-en.jsonconfig574.5 KB
project/layout-manifest.jsonconfig3.4 MB
project/npmrc.templateother40 B
project/package-lock.jsonmanifest21.8 KB
project/package.jsonmanifest1.2 KB
project/packages/html-deck-to-pptx/LICENSEother1.6 KB
project/packages/html-deck-to-pptx/README.mdmarkdown2.2 KB
project/packages/html-deck-to-pptx/index.mjsscript719 B
project/packages/html-deck-to-pptx/package.jsonmanifest840 B
project/packages/html-deck-to-pptx/src/editable.mjsscript143 B
project/packages/html-deck-to-pptx/src/screenshot.mjsscript147 B
project/scripts/chrome-path.mjsscript6.1 KB
project/scripts/command-paths.mjsscript334 B
project/scripts/ensure-registry.mjsscript2.1 KB
project/scripts/export-pptx.mjsscript6.4 KB
project/scripts/goal-scaffold.mjsscript31.3 KB
project/scripts/inspect-layout.mjsscript2.1 KB
project/scripts/layout-query.mjsscript3.4 KB
project/scripts/media-formats.mjsscript1.3 KB
project/scripts/openssl-path.mjsscript2.2 KB
project/scripts/persist-deck-state.mjsscript6.7 KB
project/scripts/preview-export-auth.mjsscript1.0 KB
project/scripts/preview-freshness.mjsscript6.2 KB
project/scripts/preview-path.mjsscript569 B
project/scripts/preview/ensure-tmpdir.mjsscript3.4 KB
project/scripts/preview/export-routes.mjsscript24.2 KB
project/scripts/preview/launch-export-browser.mjsscript2.5 KB
project/scripts/preview/mime.mjsscript671 B
project/scripts/preview/network.mjsscript799 B
project/scripts/preview/static-serve.mjsscript1.2 KB
project/scripts/preview/tls.mjsscript2.7 KB
project/scripts/render-goal-deck.jsxother2.5 KB
project/scripts/scrub-local-paths.mjsscript898 B
project/scripts/serve-preview-https.mjsscript10.7 KB
project/scripts/skill-workflow-utils.mjsscript1.4 KB
project/scripts/stage-media.mjsexecutablescript14.7 KB
project/scripts/start-preview-server.mjsscript16.1 KB
project/scripts/validate-goal-copy.mjsscript25.4 KB
project/scripts/validate-goal-spec.mjsscript80.7 KB
project/scripts/validate-swiss-deck.mjsscript34.1 KB
project/scripts/workflow-telemetry.mjsscript6.1 KB
project/scripts/workflow/copy-contract.mjsscript19.2 KB
project/scripts/workflow/inspect-fillplan.mjsscript70.6 KB
project/scripts/workflow/layout-allocation.mjsscript8.5 KB
project/scripts/workflow/layout-query.mjsscript64.4 KB
project/scripts/workflow/media-slots.mjsscript15.8 KB
project/scripts/workflow/theme-registry.mjsscript16.1 KB
project/scripts/write-safe-props.mjsscript17.7 KB
project/src/accepted-themes.mjsscript570 B
project/src/components/bespoke/BespokeSlide.jsxother32.0 KB
project/src/components/bespoke/theme-profiles.mjsscript11.5 KB
project/src/components/index.jsxother71 B
project/src/components/shell/SlideShell.jsxother1.5 KB
project/src/components/shell/index.jsxother47 B
project/src/components/themes/canonical-metadata.mjsscript4.6 KB
project/src/components/themes/chart-safety.mjsscript1.9 KB
project/src/components/themes/client-runtime.jsxother57.9 KB
project/src/components/themes/decorative-overrides.mjsscript859 B
project/src/components/themes/generated-metadata.jsscript4.4 MB
project/src/components/themes/index.jsxother2.8 KB
project/src/components/themes/runtime-build.mjsscript7.3 KB
project/src/components/themes/runtime-helpers.jsxother6.2 KB
project/src/components/themes/theme-registry-codegen.mjsscript7.2 KB
project/src/components/themes/theme01/metadata.jsscript363.9 KB
project/src/components/themes/theme01/source/slides/theme.jsscript5.6 KB
project/src/components/themes/theme02/metadata.jsscript384.6 KB
project/src/components/themes/theme02/overrides.jsscript114 B
project/src/components/themes/theme02/source/src/gxnTheme.jsscript19.6 KB
project/src/components/themes/theme03/metadata.jsscript512.5 KB
project/src/components/themes/theme03/overrides.jsscript1.2 KB
project/src/components/themes/theme03/source/assets/3d/01.pngbinary635.1 KB
project/src/components/themes/theme03/source/assets/3d/02.pngbinary865.2 KB
project/src/components/themes/theme03/source/assets/3d/03.pngbinary921.8 KB
project/src/components/themes/theme03/source/assets/3d/04.pngbinary1.1 MB
project/src/components/themes/theme03/source/assets/3d/05.pngbinary920.3 KB
project/src/components/themes/theme03/source/assets/3d/06.pngbinary1.2 MB
project/src/components/themes/theme03/source/assets/3d/07.pngbinary1.6 MB
project/src/components/themes/theme03/source/assets/3d/08.pngbinary1.4 MB
project/src/components/themes/theme03/source/assets/3d/09.pngbinary1.9 MB
project/src/components/themes/theme03/source/assets/3d/10.pngbinary1.4 MB
project/src/components/themes/theme03/source/assets/3d/11.pngbinary1.6 MB
project/src/components/themes/theme03/source/assets/3d/12.pngbinary1.8 MB
project/src/components/themes/theme03/source/src/icons.jsscript799 B
project/src/components/themes/theme03/source/src/preset3d.jsscript119 B
project/src/components/themes/theme03/source/src/presetBase.jsscript3.4 KB
project/src/components/themes/theme03/source/src/registry.jsscript22.3 KB
project/src/components/themes/theme03/source/src/slides/safeProps.jsscript504 B
project/src/components/themes/theme03/source/src/theme.cssother5.4 KB
project/src/components/themes/theme03/source/src/theme.jsscript3.0 KB
project/src/components/themes/theme04/TEXT_CONTROL_POLICY.mdmarkdown344 B
project/src/components/themes/theme04/metadata.jsscript324.4 KB
project/src/components/themes/theme04/overrides.jsscript118 B
project/src/components/themes/theme04/source/image-slot.jsscript41.0 KB
project/src/components/themes/theme05/metadata.jsscript492.0 KB
project/src/components/themes/theme05/source/styles/exc-covers.cssother9.6 KB
project/src/components/themes/theme05/source/styles/pulse-deck.cssother288.9 KB
project/src/components/themes/theme06/metadata.jsscript331.7 KB
project/src/components/themes/theme07/metadata.jsscript319.6 KB
project/src/components/themes/theme07/source/src/theme.jsscript2.9 KB
project/src/components/themes/theme08/metadata.jsscript366.7 KB
project/src/components/themes/theme08/source/image-slot.jsscript45 B
project/src/components/themes/theme09/metadata.jsscript378.4 KB
project/src/components/themes/theme10/metadata.jsscript294.2 KB
project/src/components/themes/theme11/metadata.jsscript399.9 KB
project/src/components/themes/theme12/metadata.jsscript311.7 KB
project/src/components/themes/theme12/source/src/index.jsscript23.1 KB
project/src/components/themes/theme12/source/src/swTheme.jsscript2.3 KB
project/src/components/themes/unicorn-background.jsxother2.0 KB
project/src/control-naming.mjsscript17.2 KB
project/src/deckComposer.jsxother18.8 KB
project/src/generated-metadata-writer.mjsscript722 B
project/src/i18n-core.mjsscript2.3 KB
project/src/i18n.mjsscript1.8 KB
project/src/metadata-serialize.mjsscript6.1 KB
project/src/options.jsxother1.5 KB
project/src/prop-contract-core.mjsscript70.1 KB
project/src/propContracts.jsxother658 B
project/src/react-shim.jsscript51 B
project/src/renderDeck.jsxother14.0 KB
project/src/runtime-assets.mjsscript1.7 KB
project/src/types.d.tsscript1.7 KB
project/src/variant-contract.mjsscript28.8 KB
project/src/variant-materializer.mjsscript9.0 KB
project/src/view-model/context.jsxother382 B
project/src/view-model/index.jsxother26.0 KB
project/src/view-model/schema-v2-canonical.mjsscript471 B
references/examples/annual-review.jsonconfig14.9 KB
references/examples/portfolio.jsonconfig13.1 KB
references/goal-spec.schema.jsonconfig9.9 KB
references/layout-roles.mdmarkdown1.7 KB
references/options.mdmarkdown7.5 KB
scripts/check_latest_version.mjsexecutablescript3.1 KB
scripts/render_goal_deck.ps1script4.5 KB
scripts/render_goal_deck.shexecutablescript2.3 KB

project/assets/unicorn/automations_remix_scene.json

View on GitHub
{"history":[{"breakpoints":[],"visible":true,"aspectRatio":1,"userDownsample":1,"layerType":"effect","type":"gradient","usesPingPong":false,"texture":false,"animating":false,"mouseMomentum":0,"mouseSpring":0,"isMask":0,"compiledFragmentShaders":["#version 300 es\n// Copyright (c) Unicorn Studio. Licensed under the Unicorn Studio Commercial License.\n// Unauthorized copying, redistribution, or use in competing products is prohibited.\nprecision highp float;in vec2 vTextureCoord;uniform vec2 uMousePos;const float PI = 3.14159265359;vec2 rotate(vec2 coord, float angle) {\nfloat s = sin(angle);\nfloat c = cos(angle);\nreturn vec2(\ncoord.x * c - coord.y * s,\ncoord.x * s + coord.y * c\n);\n}out vec4 fragColor;vec3 getBgColor(vec2 uv) {return vec3(0, 0, 0);\n}void main() {vec2 uv = vTextureCoord;\nvec2 pos = vec2(0.5, 0.5) + mix(vec2(0), (uMousePos-0.5), 0.0000);\nuv -= pos;\nuv /= max(0.5000*2., 1e-5);\nuv = rotate(uv, (0.0000 - 0.5) * 2. * PI);\nvec4 color = vec4(getBgColor(uv), 1.0) * 1.0000;\nfragColor = color;\n}"],"compiledVertexShaders":["#version 300 es\n// Copyright (c) Unicorn Studio. Licensed under the Unicorn Studio Commercial License.\n// Unauthorized copying, redistribution, or use in competing products is prohibited.\nprecision mediump float;in vec3 aVertexPosition;\nin vec2 aTextureCoord;uniform mat4 uMVMatrix;\nuniform mat4 uPMatrix;out vec2 vTextureCoord;\nout vec3 vVertexPosition;void main() {\ngl_Position = uPMatrix * uMVMatrix * vec4(aVertexPosition, 1.0);\nvTextureCoord = aTextureCoord;\n}"],"speed":0.25,"trackMouse":0,"trackAxes":"xy","data":{"downSample":0.5,"depth":false,"uniforms":{},"isBackground":true},"id":"be4e17f5-14d1-42a7-a448-bdeaf071472f","publicId":"gradient"},{"breakpoints":[],"visible":true,"aspectRatio":1,"userDownsample":1,"states":{"appear":[{"local":{"pendingChanges":{},"changeDebouncer":null,"dragSession":null},"type":"appear","id":"36f1c15c-a388-4cd2-942b-b1013b6c94a9","prop":"opacity","transition":{"delay":150,"duration":1500,"ease":"easeInOutCubic"},"complete":false,"progress":0,"value":0,"endValue":1,"initialized":false,"breakpoints":[],"loop":"none","loopDelay":0,"uniformData":{"type":"1f","name":"uOpacity"}}],"scroll":[],"hover":[],"mousemove":[]},"layerType":"effect","type":"noiseFill","usesPingPong":false,"texture":false,"animating":true,"mouseMomentum":0,"mouseSpring":0,"isMask":0,"compiledFragmentShaders":["#version 300 es\n// Copyright (c) Unicorn Studio. Licensed under the Unicorn Studio Commercial License.\n// Unauthorized copying, redistribution, or use in competing products is prohibited.\nprecision highp float;\nin vec2 vTextureCoord;\nin vec3 vVertexPosition;uniform sampler2D uTexture;\nuniform float uTime;\nuniform float uOpacity;\nuniform vec2 uMousePos;\nuniform vec2 uResolution;vec3 hash33(vec3 p3) {\np3 = fract(p3 * vec3(0.1031, 0.11369, 0.13787));\np3 += dot(p3, p3.yxz + 19.19);\nreturn -1.0 + 2.0 * fract(vec3(\n(p3.x + p3.y) * p3.z,\n(p3.x + p3.z) * p3.y,\n(p3.y + p3.z) * p3.x\n));\n}float perlin_noise(vec3 p) {\nvec3 pi = floor(p);\nvec3 pf = p - pi;vec3 w = pf * pf * (3.0 - 2.0 * pf);float n000 = dot(pf - vec3(0.0, 0.0, 0.0), hash33(pi + vec3(0.0, 0.0, 0.0)));\nfloat n100 = dot(pf - vec3(1.0, 0.0, 0.0), hash33(pi + vec3(1.0, 0.0, 0.0)));\nfloat n010 = dot(pf - vec3(0.0, 1.0, 0.0), hash33(pi + vec3(0.0, 1.0, 0.0)));\nfloat n110 = dot(pf - vec3(1.0, 1.0, 0.0), hash33(pi + vec3(1.0, 1.0, 0.0)));\nfloat n001 = dot(pf - vec3(0.0, 0.0, 1.0), hash33(pi + vec3(0.0, 0.0, 1.0)));\nfloat n101 = dot(pf - vec3(1.0, 0.0, 1.0), hash33(pi + vec3(1.0, 0.0, 1.0)));\nfloat n011 = dot(pf - vec3(0.0, 1.0, 1.0), hash33(pi + vec3(0.0, 1.0, 1.0)));\nfloat n111 = dot(pf - vec3(1.0, 1.0, 1.0), hash33(pi + vec3(1.0, 1.0, 1.0)));float nx00 = mix(n000, n100, w.x);\nfloat nx01 = mix(n001, n101, w.x);\nfloat nx10 = mix(n010, n110, w.x);\nfloat nx11 = mix(n011, n111, w.x);float nxy0 = mix(nx00, nx10, w.y);\nfloat nxy1 = mix(nx01, nx11, w.y);float nxyz = mix(nxy0, nxy1, w.z);return nxyz;\n}\nvec4 applyLayerMix(vec4 color, vec4 bg, float amount) {\ncolor.rgb = mix(bg.rgb, color.rgb, amount);\ncolor.a = max(bg.a, amount);\nreturn color;\n}\nuvec2 pcg2d(uvec2 v) {\nv = v * 1664525u + 1013904223u;\nv.x += v.y * v.y * 1664525u + 1013904223u;\nv.y += v.x * v.x * 1664525u + 1013904223u;\nv ^= v >> 16;\nv.x += v.y * v.y * 1664525u + 1013904223u;\nv.y += v.x * v.x * 1664525u + 1013904223u;\nreturn v;\n}float randFibo(vec2 p) {\nuvec2 v = floatBitsToUint(p);\nv = pcg2d(v);\nuint r = v.x ^ v.y;\nreturn float(r) / float(0xffffffffu);\n}\nfloat deband() {\nreturn (randFibo(gl_FragCoord.xy) - 0.5) / 255.0;\n}out vec4 fragColor;const float PI = 3.14159265359;\nconst float TAU = 6.28318530718;vec3 getNoiseColor(float t, vec3 col1, vec3 col2, float chroma) {\nvec3 mid = 0.5 * (col1 + col2);\nvec3 axisAmp = 0.5 * (col2 - col1);vec3 base = mid + axisAmp * cos(TAU * t);vec3 axis = length(axisAmp) > 0.0001 ? normalize(axisAmp) : vec3(1.0, 0.0, 0.0);\nvec3 ref = abs(axis.x) > 0.9 ? vec3(0.0, 1.0, 0.0) : vec3(1.0, 0.0, 0.0);\nvec3 tangent1 = normalize(cross(axis, ref));\nvec3 tangent2 = normalize(cross(axis, tangent1));float richness = 0.24 * length(axisAmp) + 0.02;\nvec3 ripple =\ntangent1 * sin(TAU * (t * 2.0 + 0.123)) +\ntangent2 * sin(TAU * (t * 2.0 + 0.437));vec3 col = base + (richness * chroma) * ripple;\ncol = clamp(col, -10.0, 10.0);\ncol = 1./(1. + exp(-col * 4. + 0.25) * 7.5);\nreturn clamp(col, 0.0, 1.0);\n}mat2 rot(float a) {\nreturn mat2(cos(a),-sin(a),sin(a),cos(a));\n}float getPerlinNoise(vec2 uv, float turbulence, float direction, float driftVal, float time, float scale, float phase) {\nfloat turb = turbulence * 3.2;\nvec2 skew = vec2(direction, 1. - direction);\nvec2 d = vec2(0, driftVal * time * 0.0125) * mix(1., 14., scale);\nfloat noise = perlin_noise(vec3(\nuv * skew - d,\nphase + time * 0.03\n));return mix(0.5, noise * 0.5 + 0.5, turb);\n}float getNoise(vec2 uv, float turbulence, float driftVal, float time, float scale, float direction, float phase) {\nreturn getPerlinNoise(uv, turbulence, direction, driftVal, time, scale, phase);\n}void main() {\nvec2 uv = vTextureCoord;\nfloat aspectRatio = uResolution.x/uResolution.y;\nvec2 aspect = vec2(aspectRatio, 1.0);vec2 mPos = vec2(0.5, 0.5) + mix(vec2(0), (uMousePos-0.5), 0.0000);vec2 pos = mix(vec2(0.5, 0.5), mPos, 0.0000);\nfloat scale = mix(1., 14., 5.3400);\nvec2 drift = vec2(0, 0.2700 * uTime * 0.0125);\nmat2 rotation = rot(0.2500 * 2. * PI);vec2 st = (uv - pos) * aspect * scale * rotation;\nfloat noise = getNoise(st, 1.0000, 0.2700, uTime, 5.3400, 0.7900, 0.0000);\nnoise = smoothstep(noise - 0.5, noise + 0.5, 0.9000);\nvec4 color = texture(uTexture, uv);\nvec4 bg = color;\nfloat shift = 0.0000 + (0.0000 * uTime * 0.01);\nvec3 noiseColor = getNoiseColor(noise + shift, vec3(0.2823529411764706, 0.788235294117647, 0.984313725490196), vec3(0, 0, 0), 0.0000);\ncolor.rgb = noiseColor.rgb;float dither = deband();\ncolor.rgb += dither * 0.5;color = applyLayerMix(clamp(color, 0.0, 1.0), bg, uOpacity);\nfragColor = color;}"],"compiledVertexShaders":["#version 300 es\n// Copyright (c) Unicorn Studio. Licensed under the Unicorn Studio Commercial License.\n// Unauthorized copying, redistribution, or use in competing products is prohibited.\nprecision mediump float;in vec3 aVertexPosition;\nin vec2 aTextureCoord;uniform mat4 uMVMatrix;\nuniform mat4 uPMatrix;\nuniform mat4 uTextureMatrix;out vec2 vTextureCoord;\nout vec3 vVertexPosition;void main() {\ngl_Position = uPMatrix * uMVMatrix * vec4(aVertexPosition, 1.0);\nvTextureCoord = (uTextureMatrix * vec4(aTextureCoord, 0.0, 1.0)).xy;\n}"],"opacity":1,"speed":0.1,"trackMouse":0,"trackAxes":"xy","data":{"depth":false,"uniforms":{},"isBackground":false},"id":"c63d09d4-aaff-455d-86d9-c79f22e2795f","publicId":"noise_fill"},{"breakpoints":[],"visible":true,"aspectRatio":1,"userDownsample":1,"layerType":"effect","type":"circle","usesPingPong":false,"texture":false,"animating":false,"mouseMomentum":1,"mouseSpring":0,"isMask":0,"compiledFragmentShaders":["#version 300 es\n// Copyright (c) Unicorn Studio. Licensed under the Unicorn Studio Commercial License.\n// Unauthorized copying, redistribution, or use in competing products is prohibited.\nprecision highp float;\nin vec3 vVertexPosition;\nin vec2 vTextureCoord;\nuniform sampler2D uTexture;\nuniform vec2 uMousePos;\nuniform vec2 uResolution;\nvec3 blend (int blendMode, vec3 src, vec3 dst) {\nreturn src + dst;\n}\nvec4 applyLayerMix(vec4 color, vec4 bg, float amount) {\ncolor.rgb = mix(bg.rgb, color.rgb, amount);\ncolor.a = max(bg.a, amount);\nreturn color;\n}const float TAU = 6.28318530718;out vec4 fragColor;mat2 rot(float a) {\nreturn mat2(cos(a),-sin(a),sin(a),cos(a));\n}\nvoid main() {\nvec2 uv = vTextureCoord;\nvec4 bg = texture(uTexture, uv);\nfloat displacement = 0.0;\nvec2 aspectRatio = vec2(uResolution.x/uResolution.y, 1.0);\nvec2 skew = vec2(max(0.5000, 0.001), max(1.0 - 0.5000, 0.001));\nfloat halfRadius = 0.1860 * 0.5;\nfloat falloffAmount = max(1.0900, 0.001);\nfloat innerEdge = halfRadius - falloffAmount * halfRadius * 0.5;\nfloat outerEdge = halfRadius + falloffAmount * halfRadius * 0.5;\nvec2 pos = vec2(0.5, 0.5);pos += (uMousePos - 0.5) * 1.0000;\nvec2 scaledUV = uv * aspectRatio * rot(0.0378 * TAU) * skew;\nvec2 scaledPos = pos * aspectRatio * rot(0.0378 * TAU) * skew;\nfloat radius = distance(scaledUV, scaledPos);\nfloat falloff = smoothstep(innerEdge + displacement, outerEdge + displacement, radius);\nfalloff = (1.0 - falloff) * 0.2700;vec4 color;vec3 blended = blend(1, vec3(0.0196078431372549, 0.6509803921568628, 0.9254901960784314), bg.rgb);\ncolor = applyLayerMix(vec4(blended, 1.0), bg, falloff);\nfragColor = color;}"],"compiledVertexShaders":["#version 300 es\n// Copyright (c) Unicorn Studio. Licensed under the Unicorn Studio Commercial License.\n// Unauthorized copying, redistribution, or use in competing products is prohibited.\nprecision mediump float;in vec3 aVertexPosition;\nin vec2 aTextureCoord;uniform mat4 uMVMatrix;\nuniform mat4 uPMatrix;\nuniform mat4 uTextureMatrix;out vec2 vTextureCoord;\nout vec3 vVertexPosition;void main() {\ngl_Position = uPMatrix * uMVMatrix * vec4(aVertexPosition, 1.0);\nvTextureCoord = (uTextureMatrix * vec4(aTextureCoord, 0.0, 1.0)).xy;\n}"],"trackMouse":1,"trackAxes":"xy","data":{"depth":false,"uniforms":{},"isBackground":false},"id":"72d19fdd-a6e7-418d-a54a-caaaf21aa76b","publicId":"circle"},{"breakpoints":[],"visible":true,"aspectRatio":1,"userDownsample":1,"layerType":"effect","type":"mondrian","usesPingPong":false,"texture":false,"animating":true,"mouseMomentum":0,"mouseSpring":0,"isMask":0,"compiledFragmentShaders":["#version 300 es\n// Copyright (c) Unicorn Studio. Licensed under the Unicorn Studio Commercial License.\n// Unauthorized copying, redistribution, or use in competing products is prohibited.\nprecision highp float;in vec2 vTextureCoord;uniform sampler2D uTexture;\nuniform float uTime;uniform vec2 uMousePos;\nuniform vec2 uResolution;float ease (int easingFunc, float t) {\nreturn t;\n}float getExponentialWeight(int index) {\nswitch(index) {\ncase 0: return 1.0000000000;\ncase 1: return 0.7165313106;\ncase 2: return 0.5134171190;\ncase 3: return 0.3678794412;\ncase 4: return 0.2636050919;\ncase 5: return 0.1888756057;\ncase 6: return 0.1353352832;\ncase 7: return 0.0969670595;\ncase 8: return 0.0694877157;\ncase 9: return 0.0497870684;\ncase 10: return 0.0356739933;\ncase 11: return 0.0255615332;\ncase 12: return 0.0183156389;\ncase 13: return 0.0131237287;\ncase 14: return 0.0094035626;\ncase 15: return 0.0067379470;\ndefault: return 0.0;\n}\n}out vec4 fragColor;const int ITERATIONS = 16;\nconst float TAU = 6.28318530718;\nconst float REFERENCE_SHORT_SIDE = 1000.0;mat2 rot(float a) {\nfloat s = sin(a);\nfloat c = cos(a);\nreturn mat2(c, -s, s, c);\n}vec2 perp(vec2 v) {\nreturn vec2(-v.y, v.x);\n}vec2 rotateAround(vec2 point, vec2 center, mat2 rotation, float aspectRatio) {\nvec2 translated = point - center;\ntranslated.x *= aspectRatio;\ntranslated = rotation * translated;\ntranslated.x /= aspectRatio;\nreturn translated + center;\n}vec2 getGridOffset(int index) {\nswitch (index) {\ncase 0: return vec2(-0.22, -0.18);\ncase 1: return vec2(0.18, -0.24);\ncase 2: return vec2(-0.14, 0.20);\ncase 3: return vec2(0.24, 0.12);\ncase 4: return vec2(-0.30, 0.02);\ncase 5: return vec2(0.08, -0.32);\ncase 6: return vec2(0.30, -0.06);\ncase 7: return vec2(-0.06, 0.30);\ncase 8: return vec2(0.12, 0.26);\ncase 9: return vec2(-0.26, -0.08);\ncase 10: return vec2(0.28, 0.22);\ncase 11: return vec2(-0.18, 0.28);\ncase 12: return vec2(0.04, -0.20);\ncase 13: return vec2(-0.32, 0.14);\ncase 14: return vec2(0.22, -0.14);\ndefault: return vec2(0.0);\n}\n}vec2 pixelateUV(vec2 uv, vec2 anchorPos, float pixelSizePx, vec2 gridOffset) {\nfloat shortSide = max(min(uResolution.x, uResolution.y), 0.0001);\nvec2 scale = uResolution / shortSide;\nfloat pixelSize = pixelSizePx / REFERENCE_SHORT_SIDE;\nvec2 scaledAnchorPos = anchorPos * scale;\nvec2 pixelCoord = floor((((uv * scale) - scaledAnchorPos) / pixelSize) + gridOffset) * pixelSize;\nvec2 sampleCoord = pixelCoord + (vec2(0.5) - gridOffset) * pixelSize + scaledAnchorPos;\nreturn sampleCoord / scale;\n}vec2 distortUV(vec2 uv) {\nif (0.8200 > 0.0001) {\nfloat aspectRatio = uResolution.x / uResolution.y;\nvec2 anchorPos = vec2(0.5, 0.5) + mix(vec2(0.0), (uMousePos - 0.5), 0.0000);\nvec2 mixPos = vec2(0.5, 0.5) + mix(vec2(0.0), (uMousePos - 0.5), 0.0000);\nvec2 accumulatedUv = vec2(0.0);\nfloat accumulatedWeight = 0.0;\nfloat maxPixelSize = 1.0 + 0.8200 * 50.0;\nfloat curvePower = mix(0.0, -0.5, 0.9800);\nmat2 distortionRotation = rot(0.0000 * TAU);\nvec2 rotatedUv = rotateAround(uv, anchorPos, rot(0.0000 * TAU * -1.0), aspectRatio);for (int i = 0; i < ITERATIONS; i++) {\nfloat weight = getExponentialWeight(i);\nfloat curve = pow(getExponentialWeight((ITERATIONS - 1) - i), curvePower);\nfloat pixelSizePx = mix(maxPixelSize, 1.0, curve);\nfloat offsetStrength = mix(0.35, 0.0, curve);\nvec2 baseOffset = getGridOffset(i) * offsetStrength;\nvec2 swayDir = normalize(perp(baseOffset) + vec2(0.00001, 0.0));float swayAmount = 1.0;\nif(uTime > 0.0) {\nswayAmount = sin(uTime * 0.035 + float(i) * 1.6180339) * abs(offsetStrength) * 0.18;\n}\nvec2 gridOffset = baseOffset + swayDir * swayAmount;\nvec2 pixelUv = pixelateUV(rotatedUv, anchorPos, pixelSizePx, gridOffset);accumulatedUv += pixelUv * weight;\naccumulatedWeight += weight;\n}vec2 blurredUv = rotateAround(\naccumulatedUv / max(accumulatedWeight, 0.0001),\nanchorPos,\ndistortionRotation,\naspectRatio\n);\nfloat blendRadius = ease(\n0,\nmax(0.0, 1.0 - distance(blurredUv * vec2(aspectRatio, 1.0), mixPos * vec2(aspectRatio, 1.0)) * 4.0 * (1.0 - 1.0000))\n);return mix(uv, blurredUv, 1.0000 * blendRadius);\n}return uv;\n}void main() {\nvec2 baseUv = vTextureCoord;\nvec2 uv = distortUV(baseUv);\nvec4 color = texture(uTexture, uv);\nvec4 bg = texture(uTexture, baseUv);\nfragColor = color;}"],"compiledVertexShaders":["#version 300 es\n// Copyright (c) Unicorn Studio. Licensed under the Unicorn Studio Commercial License.\n// Unauthorized copying, redistribution, or use in competing products is prohibited.\nprecision mediump float;in vec3 aVertexPosition;\nin vec2 aTextureCoord;uniform mat4 uMVMatrix;\nuniform mat4 uPMatrix;\nuniform mat4 uTextureMatrix;out vec2 vTextureCoord;\nout vec3 vVertexPosition;void main() {\ngl_Position = uPMatrix * uMVMatrix * vec4(aVertexPosition, 1.0);\nvTextureCoord = (uTextureMatrix * vec4(aTextureCoord, 0.0, 1.0)).xy;\n}"],"speed":0.17,"trackMouse":0,"trackAxes":"xy","data":{"depth":false,"uniforms":{},"isBackground":false},"id":"93825c82-7c69-4610-88f0-59d0e0856d2f","publicId":"mondrian"},{"breakpoints":[],"visible":true,"aspectRatio":1,"userDownsample":1,"layerType":"effect","type":"dither","usesPingPong":false,"texture":false,"animating":false,"mouseMomentum":0,"mouseSpring":0,"isMask":0,"compiledFragmentShaders":["#version 300 es\n// Copyright (c) Unicorn Studio. Licensed under the Unicorn Studio Commercial License.\n// Unauthorized copying, redistribution, or use in competing products is prohibited.\nprecision highp float;\nprecision highp int;in vec3 vVertexPosition;\nin vec2 vTextureCoord;uniform sampler2D uTexture;\nuniform sampler2D uBlueNoise;uniform float uTime;uniform vec2 uResolution;uvec2 pcg2d(uvec2 v) {\nv = v * 1664525u + 1013904223u;\nv.x += v.y * v.y * 1664525u + 1013904223u;\nv.y += v.x * v.x * 1664525u + 1013904223u;\nv ^= v >> 16;\nv.x += v.y * v.y * 1664525u + 1013904223u;\nv.y += v.x * v.x * 1664525u + 1013904223u;\nreturn v;\n}float randFibo(vec2 p) {\nuvec2 v = floatBitsToUint(p);\nv = pcg2d(v);\nuint r = v.x ^ v.y;\nreturn float(r) / float(0xffffffffu);\n}const int MAX_LEVEL = 4;\nconst float TAU = 6.28318530718;float getBlueNoise(vec2 st, float delta, float size) {\nivec2 texSize = textureSize(uBlueNoise, 0);\nvec4 blueNoise = texelFetch(uBlueNoise, ivec2(fract(st * (uResolution/size)/vec2(texSize) * vec2(texSize.x/texSize.y, 1.0)) * vec2(texSize)) % texSize, 0);\nreturn mod((blueNoise.r - 0.5) * TAU + (delta * (1.0 / TAU)), TAU) / TAU - 0.005;\n}vec3 dither(vec3 color, vec2 st) {\nfloat delta = floor(uTime);\nvec2 offset = vec2(randFibo(vec2(123,16) + delta), randFibo(vec2(56,96) + delta));\nfloat noise = 0.0;\nnoise = getBlueNoise(st, delta, 2.);\nfloat dither_threshold = max(0.0001, 1.0000);\nfloat num_levels = 1.0 / dither_threshold;\nreturn floor(color * num_levels + noise) / num_levels;\n}out vec4 fragColor;void main() {\nvec2 uv = vTextureCoord;\nfloat delta = floor(uTime);\nvec4 color = texture(uTexture, uv);\ncolor.rgb = mix(color.rgb, dither(color.rgb, vTextureCoord), 0.3900);\nfragColor = color;}"],"compiledVertexShaders":["#version 300 es\n// Copyright (c) Unicorn Studio. Licensed under the Unicorn Studio Commercial License.\n// Unauthorized copying, redistribution, or use in competing products is prohibited.\nprecision mediump float;in vec3 aVertexPosition;\nin vec2 aTextureCoord;uniform mat4 uMVMatrix;\nuniform mat4 uPMatrix;\nuniform mat4 uTextureMatrix;out vec2 vTextureCoord;\nout vec3 vVertexPosition;void main() {\ngl_Position = uPMatrix * uMVMatrix * vec4(aVertexPosition, 1.0);\nvTextureCoord = (uTextureMatrix * vec4(aTextureCoord, 0.0, 1.0)).xy;\n}"],"speed":0.5,"data":{"depth":false,"uniforms":{},"isBackground":false,"texture":{"src":"assets/unicorn/media/blue_noise_med.png","sampler":"uBlueNoise"}},"id":"08288318-e4f4-4ec7-8f20-3a6b02ba3e20","publicId":"dither"},{"breakpoints":[],"visible":true,"aspectRatio":1,"userDownsample":1,"layerType":"effect","type":"vignette","usesPingPong":false,"texture":false,"animating":false,"mouseMomentum":0,"mouseSpring":0,"isMask":0,"compiledFragmentShaders":["#version 300 es\n// Copyright (c) Unicorn Studio. Licensed under the Unicorn Studio Commercial License.\n// Unauthorized copying, redistribution, or use in competing products is prohibited.\nprecision highp float;\nin vec3 vVertexPosition;\nin vec2 vTextureCoord;\nuniform sampler2D uTexture;\nuniform vec2 uResolution;\nvec4 applyLayerMix(vec4 color, vec4 bg, float amount) {\ncolor.rgb = mix(bg.rgb, color.rgb, amount);\ncolor.a = max(bg.a, amount);\nreturn color;\n}const float TAU = 6.28318530718;out vec4 fragColor;\nmat2 rot(float a) {\nreturn mat2(cos(a),-sin(a),sin(a),cos(a));\n}\nvoid main() {\nvec2 uv = vTextureCoord;\nvec4 color = texture(uTexture, uv);\nfloat displacement = 0.0;vec2 aspectRatio = vec2(uResolution.x/uResolution.y, 1.0);\nvec2 skew = vec2(0.0000, 1.0 - 0.0000);\nfloat halfRadius = 0.8100 * 0.5;\nfloat innerEdge = halfRadius - 1.0000 * halfRadius * 0.5;\nfloat outerEdge = halfRadius + 1.0000 * halfRadius * 0.5;\nvec2 pos = vec2(0.49609914454053716, 0.4872936213697593);\nvec2 scaledUV = uv * aspectRatio * rot(0.0243 * TAU) * skew;\nvec2 scaledPos = pos * aspectRatio * rot(0.0243 * TAU) * skew;\nfloat radius = distance(scaledUV, scaledPos);\nfloat falloff = smoothstep(innerEdge + displacement, outerEdge + displacement, radius);\nvec4 vignetteColor;vignetteColor = applyLayerMix(vec4(vec3(0, 0, 0), 1.0), color, falloff * 1.0000);\nvec4 col = mix(color * (1.-falloff), vec4(vignetteColor.rgb, vignetteColor.a), 1.0000);\nfragColor = col;}"],"compiledVertexShaders":["#version 300 es\n// Copyright (c) Unicorn Studio. Licensed under the Unicorn Studio Commercial License.\n// Unauthorized copying, redistribution, or use in competing products is prohibited.\nprecision mediump float;in vec3 aVertexPosition;\nin vec2 aTextureCoord;uniform mat4 uMVMatrix;\nuniform mat4 uPMatrix;\nuniform mat4 uTextureMatrix;out vec2 vTextureCoord;\nout vec3 vVertexPosition;void main() {\ngl_Position = uPMatrix * uMVMatrix * vec4(aVertexPosition, 1.0);\nvTextureCoord = (uTextureMatrix * vec4(aTextureCoord, 0.0, 1.0)).xy;\n}"],"trackMouse":0,"trackAxes":"xy","data":{"depth":false,"uniforms":{},"isBackground":false},"id":"03dc8c47-51e7-4479-9723-8ffcc2feef64","publicId":"vignette"},{"breakpoints":[],"visible":true,"aspectRatio":1,"userDownsample":1,"layerType":"effect","type":"blobTracking","usesPingPong":false,"texture":false,"animating":false,"mouseMomentum":0,"mouseSpring":0,"isMask":0,"compiledFragmentShaders":["#version 300 es\n// Copyright (c) Unicorn Studio. Licensed under the Unicorn Studio Commercial License.\n// Unauthorized copying, redistribution, or use in competing products is prohibited.\nprecision highp float;\nprecision highp int;in vec2 vTextureCoord;\nuniform sampler2D uTexture;\nuniform sampler2D uPreviousFrameTexture;\nuniform vec2 uResolution;out vec4 fragColor;float luma(vec3 color) {\nreturn dot(color, vec3(0.299, 0.587, 0.114));\n}vec4 maskPass(vec2 uv) {\nvec2 texel = 1.0 / uResolution;vec4 current = texture(uTexture, uv);\nfloat currentLuma = luma(current.rgb);\nif (current.a < 0.005 && currentLuma < 0.005) return vec4(0.0);float l = luma(texture(uTexture, uv + vec2(-1.0, 0.0) * texel).rgb);\nfloat r = luma(texture(uTexture, uv + vec2( 1.0, 0.0) * texel).rgb);\nfloat t = luma(texture(uTexture, uv + vec2( 0.0,-1.0) * texel).rgb);\nfloat b = luma(texture(uTexture, uv + vec2( 0.0, 1.0) * texel).rgb);float gx = r - l;\nfloat gy = b - t;\nfloat gradMag = length(vec2(gx, gy));vec4 prevOutput = texture(uPreviousFrameTexture, uv);\nif (all(equal(prevOutput, vec4(0.0)))) {\nreturn vec4(0.0, currentLuma, gx * 0.5 + 0.5, gy * 0.5 + 0.5);\n}\nfloat prevLuma = prevOutput.g;\nvec2 prevGrad = (prevOutput.ba - 0.5) * 2.0;\nfloat prevGradMag = length(prevGrad);float lumaDiff = abs(currentLuma - prevLuma);\nfloat threshold = 0.5500 * 0.2;\nfloat lumaMotion = smoothstep(threshold, threshold + 0.15, lumaDiff);float magChange = abs(gradMag - prevGradMag);\nfloat structuralMotion = smoothstep(0.08, 0.5, magChange);\nfloat detected = max(lumaMotion, lumaMotion * structuralMotion);\ndetected = smoothstep(0.05, 0.4, detected);float prevDetected = prevOutput.r;\nfloat riseRate = 0.6;\nfloat fallRate = mix(0.5, 0.85, 1.0000);\ndetected = (detected > prevDetected)\n? mix(prevDetected, detected, riseRate)\n: prevDetected * fallRate;return vec4(detected, currentLuma, gx * 0.5 + 0.5, gy * 0.5 + 0.5);\n}void main() {\nvec2 uv = vTextureCoord;\nfragColor = maskPass(uv);\n}","#version 300 es\n// Copyright (c) Unicorn Studio. Licensed under the Unicorn Studio Commercial License.\n// Unauthorized copying, redistribution, or use in competing products is prohibited.\nprecision highp float;\nprecision highp int;in vec2 vTextureCoord;\nuniform sampler2D uTexture;\nuniform vec2 uResolution;out vec4 fragColor;vec2 getDirection(int i) {\nfloat angle = float(i) * 0.7853981634;\nreturn vec2(cos(angle), sin(angle));\n}vec4 peakPass(vec2 uv) {\nvec2 texel = 1.0 / uResolution;\nconst float ACTIVE_THRESHOLD = 0.02;\nconst float FILL_RADIUS = 6.0;\nvec4 centerSample = texture(uTexture, uv);\nfloat centerVal = centerSample.r;\nfloat quickMax = centerVal;\nquickMax = max(quickMax, texture(uTexture, uv + vec2(4.0, 0.0) * texel).r);\nquickMax = max(quickMax, texture(uTexture, uv + vec2(-4.0, 0.0) * texel).r);\nquickMax = max(quickMax, texture(uTexture, uv + vec2(0.0, 4.0) * texel).r);\nquickMax = max(quickMax, texture(uTexture, uv + vec2(0.0, -4.0) * texel).r);\nif (quickMax < ACTIVE_THRESHOLD * 0.5) {\nreturn vec4(0.0, 0.5, 0.5, 0.0);\n}\nfloat nearestActiveDist = FILL_RADIUS + 1.0;\nfloat maxVal = centerVal;\nvec2 gradient = vec2(0.0);\nif (centerVal > ACTIVE_THRESHOLD) {\nnearestActiveDist = 0.0;\n}\nfor (int i = 0; i < 8; i++) {\nvec2 dir = getDirection(i);\nfor (float d = 2.0; d <= FILL_RADIUS; d += 2.0) {\nvec2 offset = dir * d * texel;\nfloat v = texture(uTexture, uv + offset).r;\nif (v > ACTIVE_THRESHOLD) {\nnearestActiveDist = min(nearestActiveDist, d);\n}\nmaxVal = max(maxVal, v);\nif (v > 0.01) {\ngradient += dir * d * v;\n}\n}\n}\nfloat result = 0.0;\nif (nearestActiveDist <= FILL_RADIUS) {\nresult = 1.0 - smoothstep(FILL_RADIUS * 0.5, FILL_RADIUS, nearestActiveDist);\nresult *= mix(0.7, 1.0, smoothstep(0.0, 0.1, maxVal));\n}\nfloat gradLen = length(gradient);\nvec2 gradDir = (gradLen > 0.001) ? gradient / gradLen : vec2(0.0);\nvec2 gradEncoded = gradDir * 0.5 + 0.5;\nfloat peakness = (maxVal > ACTIVE_THRESHOLD && result > 0.02) ?\nclamp(maxVal / 0.2, 0.0, 1.0) : 0.0;\nreturn vec4(result, gradEncoded.x, gradEncoded.y, peakness);\n}void main() {\nvec2 uv = vTextureCoord;\nfragColor = peakPass(uv);\n}","#version 300 es\n// Copyright (c) Unicorn Studio. Licensed under the Unicorn Studio Commercial License.\n// Unauthorized copying, redistribution, or use in competing products is prohibited.\nprecision highp float;\nprecision highp int;in vec2 vTextureCoord;\nuniform sampler2D uTexture;\nuniform sampler2D uPreviousFrameTexture;\nuniform vec2 uResolution;out vec4 fragColor;const int MAX_BLOBS = 16;\nconst float GRID_SIZE = 8.0;\nconst float BLOB_SLOT_HEIGHT = 0.02;vec2 getBlobSlotUV(int blobIndex) {\nfloat slotX = (float(blobIndex) + 0.5) / 8.0000;\nreturn vec2(slotX, BLOB_SLOT_HEIGHT * 0.5);\n}bool isBlobSlot(vec2 uv) {\nreturn uv.y < BLOB_SLOT_HEIGHT;\n}int getBlobIndexForUV(vec2 uv) {\nreturn int(floor(uv.x * 8.0000));\n}bool isBlobStateAlive(vec4 state) {\nreturn state.z > 0.01 && state.w > 0.05 && state.x >= 0.0;\n}bool checkBlobCollision(vec2 cPos, int slotIndex, float minSpacing, bool checkLower, bool checkHigher) {\nif (checkLower) {\nfor (int j = 0; j < MAX_BLOBS; j++) {\nif (j >= slotIndex) break;\nif (j >= int(8.0000)) break;\nvec4 jState = textureLod(uPreviousFrameTexture, getBlobSlotUV(j), 0.0);\nif (!isBlobStateAlive(jState)) continue;\nif (length(cPos - jState.xy) < minSpacing) return true;\n}\n}\nif (checkHigher) {\nfor (int j = 0; j < MAX_BLOBS; j++) {\nint idx = slotIndex + 1 + j;\nif (idx >= int(8.0000)) break;\nvec4 jState = textureLod(uPreviousFrameTexture, getBlobSlotUV(idx), 0.0);\nif (!isBlobStateAlive(jState)) continue;\nif (length(cPos - jState.xy) < minSpacing) return true;\n}\n}\nreturn false;\n}vec4 sampleGridCell(vec2 cellCenter, vec2 cellSize, out vec2 sumPos2, out vec2 bestPeakPos) {\nconst int SAMPLE_COUNT = 25;\nfloat sumW = 0.0;\nvec2 sumPos = vec2(0.0);\nsumPos2 = vec2(0.0);\nfloat bestPeakStrength = 0.0;\nbestPeakPos = vec2(0.0);\nfor (int s = 0; s < SAMPLE_COUNT; s++) {\nfloat x = float(s % 5);\nfloat y = float(s / 5);\nvec2 offset = (vec2(x, y) / 4.0 - 0.5) * cellSize;\nvec2 samplePos = cellCenter + offset;\nif (samplePos.x < 0.0 || samplePos.x > 1.0 ||\nsamplePos.y < 0.0 || samplePos.y > 1.0) continue;vec4 peakData = texture(uTexture, samplePos);\nfloat fieldStrength = peakData.r;\nfloat peakness = peakData.a;\nif (fieldStrength > 0.01) {\nfloat w = fieldStrength * (1.0 + peakness * 0.3);\nsumW += w;\nsumPos += samplePos * w;\nsumPos2 += samplePos * samplePos * w;\nfloat peakScore = fieldStrength * (0.5 + peakness);\nif (peakScore > bestPeakStrength) {\nbestPeakStrength = peakScore;\nbestPeakPos = samplePos;\n}\n}\n}\nreturn vec4(sumW, sumPos.x, sumPos.y, bestPeakStrength);\n}vec4 slotPass(vec2 uv) {\nif (!isBlobSlot(uv)) return vec4(0.0);int slotIndex = getBlobIndexForUV(uv);\nif (slotIndex >= int(8.0000)) return vec4(0.0);vec2 slotUV = getBlobSlotUV(slotIndex);\nvec4 prevState = texture(uPreviousFrameTexture, slotUV);\nvec2 prevPos = prevState.xy;\nfloat prevSize = prevState.z;\nfloat prevConf = prevState.w;\nbool wasAlive = (prevSize > 0.01 && prevConf > 0.05 && prevPos.x >= 0.0);vec2 bestPos = vec2(-1.0);\nvec2 bestSize = vec2(0.0);\nfloat bestScore = 0.0;\nfloat cols = ceil(sqrt(8.0000));\nfloat rows = ceil(8.0000 / cols);\nfloat col = mod(float(slotIndex), cols);\nfloat row = floor(float(slotIndex) / cols);\nvec2 slotCenter = vec2((col + 0.5) / cols, (row + 0.5) / rows);\nfloat slotRadius = 0.5 / max(cols, rows);\nconst float MIN_SPACING = 0.07;\nconst float TRACK_RADIUS = 0.05;\nvec2 cellSize = vec2(1.0 / GRID_SIZE);for (int cell = 0; cell < 64; cell++) {\nint cx = cell % 8;\nint cy = cell / 8;\nvec2 cellCenter = (vec2(float(cx), float(cy)) + 0.5) / GRID_SIZE;\nvec2 sumPos2;\nvec2 bestPeakPos;\nvec4 sampleResult = sampleGridCell(cellCenter, cellSize, sumPos2, bestPeakPos);\nfloat sumW = sampleResult.x;\nvec2 sumPos = sampleResult.yz;\nfloat bestPeakStrength = sampleResult.w;if (sumW < 0.015) continue;vec2 cPos = sumPos / sumW;\nif (bestPeakStrength > 0.2) {\ncPos = mix(cPos, bestPeakPos, 0.05);\n}\nvec2 var = max(sumPos2 / sumW - cPos * cPos, vec2(0.0));\nfloat activity = clamp(sumW / 0.25, 0.0, 1.0);\nfloat minActivity = wasAlive ? 0.12 : 0.2;\nif (activity < minActivity) continue;float sizeScalar = sqrt(max(var.x, var.y)) * mix(1.5, 3.5, activity);\nfloat maxSize = mix(0.2, 1.2, 0.5000);\nsizeScalar = sizeScalar * maxSize;float distFromSelf = length(cPos - prevPos);\nif (checkBlobCollision(cPos, slotIndex, MIN_SPACING, true, false)) continue;\nif (wasAlive && distFromSelf > TRACK_RADIUS) continue;\nif (!wasAlive) {\nif (checkBlobCollision(cPos, slotIndex, MIN_SPACING, false, true)) continue;\n}float score = sumW * activity;\nfloat distFromSlot = length(cPos - slotCenter);\nfloat regionBonus = exp(-distFromSlot * distFromSlot / (slotRadius * slotRadius * 2.0));\nif (wasAlive) {\nscore *= exp(-distFromSelf * 2.0);\nscore *= (0.5 + 0.5 * regionBonus);\n} else {\nscore *= (0.8 + 0.2 * regionBonus);\n}\nif (score > bestScore) {\nbestScore = score;\nbestPos = cPos;\nbestSize = vec2(sizeScalar);\n}\n}vec2 newPos, newSize;\nfloat SPAWN_THRESHOLD = mix(0.12, 0.05, 1.0000);\nfloat TRACK_THRESHOLD = mix(0.06, 0.02, 1.0000);\nfloat acceptThreshold = wasAlive ? TRACK_THRESHOLD : SPAWN_THRESHOLD;\nfloat newConf = 0.0;\nfloat bestConf = clamp(bestScore * 8.0, 0.0, 1.0);\nconst float MIN_PEAK_STRENGTH = 0.02;\nfloat peakAtBest = 0.0;\nvec2 texel = 1.0 / uResolution;\nfor (int p = 0; p < 25; p++) {\nfloat px = float(p % 5) - 2.0;\nfloat py = float(p / 5) - 2.0;\nfloat pVal = texture(uTexture, bestPos + vec2(px, py) * texel * 2.0).r;\npeakAtBest = max(peakAtBest, pVal);\n}\nbool canAccept = bestScore > acceptThreshold && peakAtBest > MIN_PEAK_STRENGTH;if (canAccept) {\nif (wasAlive) {\nfloat smoothFactor = mix(1.0, 0.05, 0.1800);\nnewPos = mix(prevPos, bestPos, smoothFactor);\nnewSize = vec2(prevSize);\n} else {\nnewPos = bestPos;\nnewSize = bestSize;\n}\nnewConf = clamp(max(prevConf * 0.8, bestConf), 0.0, 1.0);\n} else {\nnewPos = vec2(-1.0);\nnewSize = vec2(0.0);\nnewConf = 0.0;\n}return vec4(newPos, newSize.x, newConf);\n}void main() {\nvec2 uv = vTextureCoord;\nfragColor = slotPass(uv);\n}","#version 300 es\n// Copyright (c) Unicorn Studio. Licensed under the Unicorn Studio Commercial License.\n// Unauthorized copying, redistribution, or use in competing products is prohibited.\nprecision highp float;\nprecision highp int;in vec2 vTextureCoord;\nuniform sampler2D uTexture;\nuniform sampler2D uBgTexture;\nuniform sampler2D uFontAtlas;uniform vec2 uResolution;out vec4 fragColor;const float FONT_COLS = 8.0;\nconst float FONT_ROWS = 8.0;const int FONT_START_CHAR = 32;\nconst int MAX_BLOBS = 16;\nconst float BLOB_SLOT_HEIGHT = 0.02;float sampleChar(vec2 uv, int charCode) {\nint charIndex = charCode - FONT_START_CHAR;\nif (charIndex < 0 || charIndex >= 64) return 0.0;\nfloat col = mod(float(charIndex), FONT_COLS);\nfloat row = floor(float(charIndex) / FONT_COLS);\nfloat cellSize = 1.0 / 8.0;\nfloat x = (col + uv.x) * cellSize;\nfloat y = 1.0 - (row + 1.0 - uv.y) * cellSize;\nreturn textureLod(uFontAtlas, vec2(x, y), 0.0).r;\n}float renderDigit(vec2 uv, vec2 pos, vec2 size, int digit) {\nvec2 localUV = (uv - pos) / size;\nif (localUV.x < 0.0 || localUV.x > 1.0 || localUV.y < 0.0 || localUV.y > 1.0) {\nreturn 0.0;\n}\nint charCode = 48 + digit;\nfloat sdf = sampleChar(localUV, charCode);\nfloat edge = 0.7;\nfloat smoothing = 0.05;\nreturn smoothstep(edge - smoothing, edge + smoothing, sdf);\n}float renderChar(vec2 uv, vec2 pos, vec2 size, int charCode) {\nvec2 localUV = (uv - pos) / size;\nif (localUV.x < 0.0 || localUV.x > 1.0 || localUV.y < 0.0 || localUV.y > 1.0) {\nreturn 0.0;\n}\nfloat sdf = sampleChar(localUV, charCode);\nfloat edge = 0.6;\nfloat smoothing = 0.05;\nreturn smoothstep(edge - smoothing, edge + smoothing, sdf);\n}float renderFloat(vec2 uv, vec2 pos, vec2 charSize, float value) {\nfloat result = 0.0;\nfloat spacing = charSize.x * 0.35;\nfloat clamped = clamp(value, 0.0, 0.9999);\nint digits = int(clamped * 10000.0);\nint d1 = digits / 1000;\nint d2 = (digits / 100) % 10;\nint d3 = (digits / 10) % 10;\nint d4 = digits % 10;\nfloat startX = pos.x - spacing * 2.5;\nresult = max(result, renderDigit(uv, vec2(startX, pos.y), charSize, 0));\nresult = max(result, renderChar(uv, vec2(startX + spacing, pos.y), charSize, 46));\nresult = max(result, renderDigit(uv, vec2(startX + spacing * 2.0, pos.y), charSize, d1));\nresult = max(result, renderDigit(uv, vec2(startX + spacing * 3.0, pos.y), charSize, d2));\nresult = max(result, renderDigit(uv, vec2(startX + spacing * 4.0, pos.y), charSize, d3));\nresult = max(result, renderDigit(uv, vec2(startX + spacing * 5.0, pos.y), charSize, d4));\nreturn result;\n}vec2 getBlobSlotUV(int blobIndex) {\nfloat slotX = (float(blobIndex) + 0.5) / 8.0000;\nreturn vec2(slotX, BLOB_SLOT_HEIGHT * 0.5);\n}vec4 getBlobStateFromSlot(int i, sampler2D tex) {\nif (i >= int(8.0000)) return vec4(-1.0, -1.0, 0.0, 0.0);\nreturn textureLod(tex, getBlobSlotUV(i), 0.0);\n}bool isBlobStateActive(vec4 state) {\nreturn state.x >= 0.0 && state.z >= 0.01 && state.w >= 0.1;\n}int countActiveBlobs(sampler2D tex) {\nint count = 0;\nfor (int i = 0; i < MAX_BLOBS; i++) {\nif (i >= int(8.0000)) break;\nvec4 state = getBlobStateFromSlot(i, tex);\nif (isBlobStateActive(state)) count++;\n}\nreturn count;\n}vec2 getNthActiveBlobPos(int n, sampler2D tex, float aspectRatio) {\nint count = 0;\nfor (int i = 0; i < MAX_BLOBS; i++) {\nif (i >= int(8.0000)) break;\nvec4 state = getBlobStateFromSlot(i, tex);\nif (!isBlobStateActive(state)) continue;\nif (count == n) {\nreturn vec2(state.x * aspectRatio, state.y);\n}\ncount++;\n}\nreturn vec2(0.0);\n}float boxSDF(vec2 p, vec2 center, vec2 halfSize) {\nvec2 d = abs(p - center) - halfSize;\nfloat outside = length(max(d, 0.0));\nfloat inside = min(max(d.x, d.y), 0.0);\nreturn outside + inside;\n}float dashedLineSDF(vec2 p, vec2 a, vec2 b, float dashLength, float gapLength) {\nvec2 pa = p - a;\nvec2 ba = b - a;\nfloat lineLen = length(ba);\nfloat h = clamp(dot(pa, ba) / dot(ba, ba), 0.0, 1.0);\nfloat distAlongLine = h * lineLen;\nfloat period = dashLength + gapLength;\nfloat inPeriod = mod(distAlongLine, period);\nif (inPeriod > dashLength) return 1.0;\nreturn length(pa - ba * h);\n}float dottedLineSDF(vec2 p, vec2 a, vec2 b) {\nfloat dotLength = 0.004;\nfloat dotGap = 0.008;\nreturn dashedLineSDF(p, a, b, dotLength, dotGap);\n}float lineStyleDistance(vec2 p, vec2 a, vec2 b, float dashLength, float gapLength) {\nreturn dottedLineSDF(p, a, b);\n}void computePolygonLineDistances(vec2 uvA, float aspectRatio, sampler2D tex, float maxConnectionDist, float dashLength, float gapLength, inout float minLineDist) {\nint activeCount = countActiveBlobs(tex);\nif (activeCount < 2) return;\nfor (int i = 0; i < MAX_BLOBS; i++) {\nif (i >= activeCount) break;\nint nextIdx = (i + 1) % activeCount;\nvec2 p1 = getNthActiveBlobPos(i, tex, aspectRatio);\nvec2 p2 = getNthActiveBlobPos(nextIdx, tex, aspectRatio);\nif (length(p1 - p2) > maxConnectionDist) continue;\nfloat d = lineStyleDistance(uvA, p1, p2, dashLength, gapLength);\nminLineDist = min(minLineDist, d);\n}\n}float renderLabelIntensity(vec2 uvA, float aspectRatio, sampler2D tex) {\nfloat textResult = 0.0;\nfloat charHeight = mix(0.015, 0.05, 0.2000);\nvec2 charSize = vec2(charHeight, charHeight);\nint blobCountInt = int(8.0000);\nfor (int i = 0; i < MAX_BLOBS; i++) {\nif (i >= blobCountInt) break;\nvec4 state = getBlobStateFromSlot(i, tex);\nif (!isBlobStateActive(state)) continue;\nvec2 blobPos = state.xy;\nfloat blobSize = state.z * 0.5;\nvec2 labelPos = vec2(\nblobPos.x * aspectRatio - blobSize + charSize.x * 0.4,\nblobPos.y - blobSize + charSize.y * 0.4\n);\nfloat intensity = clamp(blobSize * 4.0, 0.0, 1.0);\nlabelPos.x += charSize.x;\ntextResult = max(textResult, renderFloat(uvA, labelPos, charSize, intensity));\n}\nreturn textResult;\n}vec2 blobStylePointSquareData(vec2 uvA, vec2 centerA) {\nfloat pointRadius = 0.005;\nfloat d = boxSDF(uvA, centerA, vec2(pointRadius));\nreturn vec2(abs(d), d);\n}vec4 drawPass(vec2 uv) {\nvec4 background = texture(uBgTexture, uv);\nif (background.a < 0.001) return vec4(0.0);float aspectRatio = uResolution.x / uResolution.y;\nfloat minBlobDist = 1.0;\nfloat minLineDist = 1.0;\nbool foundAny = false;\nint blobCountInt = int(8.0000);\nfor (int i = 0; i < MAX_BLOBS; i++) {\nif (i >= blobCountInt) break;\nvec4 state = getBlobStateFromSlot(i, uTexture);\nif (isBlobStateActive(state)) {\nfoundAny = true;\nbreak;\n}\n}\nif (!foundAny) {\nif (1 == 1) {\nreturn background;\n}\nreturn vec4(0.0);\n}\nvec2 uvA = vec2(uv.x * aspectRatio, uv.y);\nfloat lineWidth = 0.2000 * 0.005;\nfloat dashLength = 0.015;\nfloat gapLength = 0.01;\nfloat minFillDist = 1.0;\nfor (int i = 0; i < MAX_BLOBS; i++) {\nif (i >= blobCountInt) break;\nvec4 state = getBlobStateFromSlot(i, uTexture);\nif (!isBlobStateActive(state)) continue;\nvec2 blobPos = state.xy;\nfloat blobSize = state.z * 0.5;\nvec2 centerA = vec2(blobPos.x * aspectRatio, blobPos.y);\nvec2 halfSize = vec2(blobSize);\nfloat blobD = 1.0;\nvec2 blobData = vec2(1.0);\nblobData = blobStylePointSquareData(uvA, centerA);\nblobD = blobData.x;\nminBlobDist = min(minBlobDist, blobD);\nminFillDist = min(minFillDist, blobData.y);\n}\ncomputePolygonLineDistances(uvA, aspectRatio, uTexture, 0.5000, dashLength, gapLength, minLineDist);float connectionWidth = lineWidth;\nfloat blobLineWidth = lineWidth;\nfloat blobResult = 1.0 - smoothstep(blobLineWidth * 0.5, blobLineWidth * 1.5, minBlobDist);\nfloat fillResult = 0.0;\nfillResult = (minFillDist < 0.0) ? 0.4600 : 0.0;\nfloat lineResult = 0.0;lineResult = 1.0 - smoothstep(connectionWidth * 0.5, connectionWidth * 1.5, minLineDist);float textResult = 0.0;\ntextResult = renderLabelIntensity(uvA, aspectRatio, uTexture);\nfloat result = max(max(max(blobResult, lineResult), fillResult), textResult);vec3 finalColor;\nfinalColor = mix(background.rgb, vec3(0.8666666666666667, 0.8274509803921568, 1), result * 1.0000);float finalAlpha = background.a;\nreturn vec4(finalColor, finalAlpha);\n}void main() {\nvec2 uv = vTextureCoord;\nvec4 color = drawPass(uv);\nfragColor = color;}"],"compiledVertexShaders":["#version 300 es\n// Copyright (c) Unicorn Studio. Licensed under the Unicorn Studio Commercial License.\n// Unauthorized copying, redistribution, or use in competing products is prohibited.\nprecision mediump float;in vec3 aVertexPosition;\nin vec2 aTextureCoord;uniform mat4 uMVMatrix;\nuniform mat4 uPMatrix;\nuniform mat4 uTextureMatrix;out vec2 vTextureCoord;\nout vec3 vVertexPosition;void main() {\ngl_Position = uPMatrix * uMVMatrix * vec4(aVertexPosition, 1.0);\nvTextureCoord = (uTextureMatrix * vec4(aTextureCoord, 0.0, 1.0)).xy;\n}"],"data":{"downSample":0.25,"depth":false,"uniforms":{},"isBackground":false,"passes":[{"prop":"pass","value":1,"downSample":0.25,"passDescription":"Find candidate blob peaks in the motion field."},{"prop":"pass","value":2,"downSample":0.25,"needsPreviousFrame":"pass","passDescription":"Assign detected peaks to persistent blob slots."},{"prop":"pass","value":3,"includeBg":true,"passDescription":"Render tracked blobs, links, and labels over the background."}],"needsPreviousFrame":"pass","texture":{"src":"assets/unicorn/media/font_atlas.png","sampler":"uFontAtlas"}},"id":"5b641552-cc31-4f61-a842-3f7ba5b27554","publicId":"blob_tracking"},{"breakpoints":[],"visible":true,"aspectRatio":1,"userDownsample":1,"layerType":"effect","type":"outline","usesPingPong":false,"texture":false,"animating":false,"mouseMomentum":0,"mouseSpring":0,"isMask":0,"compiledFragmentShaders":["#version 300 es\n// Copyright (c) Unicorn Studio. Licensed under the Unicorn Studio Commercial License.\n// Unauthorized copying, redistribution, or use in competing products is prohibited.\nprecision highp float;\nin vec2 vTextureCoord;uniform sampler2D uTexture;\nuniform vec2 uResolution;\nvec3 blend (int blendMode, vec3 src, vec3 dst) {\nreturn vec3((dst.x <= 0.5) ? (2.0 * src.x * dst.x) : (1.0 - 2.0 * (1.0 - dst.x) * (1.0 - src.x)), (dst.y <= 0.5) ? (2.0 * src.y * dst.y) : (1.0 - 2.0 * (1.0 - dst.y) * (1.0 - src.y)), (dst.z <= 0.5) ? (2.0 * src.z * dst.z) : (1.0 - 2.0 * (1.0 - dst.z) * (1.0 - src.z)));\n}\nvec4 applyLayerMix(vec4 color, vec4 bg, float amount) {\ncolor.rgb = mix(bg.rgb, color.rgb, amount);\ncolor.a = max(bg.a, amount);\nreturn color;\n}out vec4 fragColor;float luma(vec3 c) {\nreturn dot(c, vec3(0.299, 0.587, 0.114));\n}float interleavedGradientNoise(vec2 st) {\nreturn fract(52.9829189 * fract(dot(st, vec2(0.06711056, 0.00583715))));\n}void main() {\nvec2 uv = vTextureCoord;float thickness = 0.3900;vec2 pixel = (1.0 / uResolution) * max(thickness * 4.0, 0.001);\nfloat noise = interleavedGradientNoise(gl_FragCoord.xy);pixel *= mix(1.0, noise, 0.1);float tl = luma(texture(uTexture, uv + pixel * vec2(-1, -1)).rgb);\nfloat t = luma(texture(uTexture, uv + pixel * vec2( 0, -1)).rgb);\nfloat tr = luma(texture(uTexture, uv + pixel * vec2( 1, -1)).rgb);\nfloat l = luma(texture(uTexture, uv + pixel * vec2(-1, 0)).rgb);\nfloat r = luma(texture(uTexture, uv + pixel * vec2( 1, 0)).rgb);\nfloat bl = luma(texture(uTexture, uv + pixel * vec2(-1, 1)).rgb);\nfloat b = luma(texture(uTexture, uv + pixel * vec2( 0, 1)).rgb);\nfloat br = luma(texture(uTexture, uv + pixel * vec2( 1, 1)).rgb);float gx = -tl - 2.0 * l - bl + tr + 2.0 * r + br;\nfloat gy = -tl - 2.0 * t - tr + bl + 2.0 * b + br;\nfloat edge = length(vec2(gx, gy));float soft = max(0.0000 * 0.5, 0.001);\nedge = smoothstep(1.0000 - soft, 1.0000 + soft, edge);\nedge *= (1.0000 * 2.0);vec4 scene = texture(uTexture, uv);\nvec3 outline = vec3(0, 0.6549019607843137, 0.8549019607843137) * edge;\nvec3 blended = outline;blended = blend(5, outline, scene.rgb);vec4 col = applyLayerMix(vec4(blended, 1.0), scene, 0.6700);\nfragColor = col;}"],"compiledVertexShaders":["#version 300 es\n// Copyright (c) Unicorn Studio. Licensed under the Unicorn Studio Commercial License.\n// Unauthorized copying, redistribution, or use in competing products is prohibited.\nprecision mediump float;in vec3 aVertexPosition;\nin vec2 aTextureCoord;uniform mat4 uMVMatrix;\nuniform mat4 uPMatrix;\nuniform mat4 uTextureMatrix;out vec2 vTextureCoord;\nout vec3 vVertexPosition;void main() {\ngl_Position = uPMatrix * uMVMatrix * vec4(aVertexPosition, 1.0);\nvTextureCoord = (uTextureMatrix * vec4(aTextureCoord, 0.0, 1.0)).xy;\n}"],"trackMouse":0,"trackAxes":"xy","data":{"depth":false,"uniforms":{},"isBackground":false},"id":"9b66ec18-72f9-4fa0-8a3d-edd34c27d170","publicId":"outline"}],"options":{"name":"Automations (Remix)","fps":60,"dpi":1.5,"scale":1,"includeLogo":false,"isProduction":false,"flatten":false},"version":"2.1.12","id":"2Gzluf1DlwZsTqj2o5pO"}
canvas-designanthropics/skillsCreate beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
docxanthropics/skillsUse this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include: any mention of 'Word doc', 'word document', '.docx', '.dotx', or requests to produce professional documents with formatting like tables of contents, headings, page numbers, or letterheads. Also use when extracting or reorganizing content from .docx or .dotx files, inserting or replacing images in documents, performing find-and-replace in Word files, working with tracked changes or comments, or converting content into a polished Word document. If the user asks for a 'report', 'memo', 'letter', 'template', or similar deliverable as a Word or .docx file, use this skill. Do NOT use for PDFs, spreadsheets, Google Docs, or general coding tasks unrelated to document generation.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
pdfanthropics/skillsUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple PDFs into one, splitting PDFs apart, rotating pages, adding watermarks, creating new PDFs, filling PDF forms, encrypting/decrypting PDFs, extracting images, and OCR on scanned PDFs to make them searchable. If the user mentions a .pdf file or asks to produce one, use this skill.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
pptxanthropics/skillsUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx or .potx file (even if the extracted content will be used elsewhere, like in an email or summary); editing, modifying, or updating existing presentations; combining or splitting slide files; working with templates (.potx), layouts, speaker notes, or comments. Trigger whenever the user mentions "deck," "slides," "presentation," or references a .pptx or .potx filename, regardless of what they plan to do with the content afterward. If a .pptx or .potx file needs to be opened, created, or touched, use this skill.Stars: 198kUpdated Claude CodeCodexVerifiedInstall