chuspeeism/dashi-ppt-skill / skills/dashi-ppt
dashi-ppt
Flagged制作 PPT、演示文稿、幻灯片、汇报材料时使用。Dashi PPT 基于预置视觉主题组合页面,生成可离线打开、可在浏览器编辑的 HTML 演示,支持导出 PPTX / PDF 文件。
project/assets/unicorn/goey_balls_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":"a6368175-f564-4dcf-a162-7e2e1fd24367","publicId":"gradient"},{"breakpoints":[],"visible":true,"aspectRatio":1,"userDownsample":1,"layerType":"effect","type":"beam","usesPingPong":false,"texture":false,"animating":true,"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;\nprecision highp int;in vec2 vTextureCoord;uniform sampler2D uTexture;uniform float uTime;uniform vec2 uMousePos;\nuniform vec2 uResolution;\nvec3 blend (int blendMode, vec3 src, vec3 dst) {\nreturn src + dst;\n}vec4 applyLayerMix(vec4 color, vec4 bg, float amount) {\ncolor.rgb = mix(bg.rgb, color.rgb, amount);\ncolor.a = max(bg.a, amount);\nreturn color;\n}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}float deband() {\nreturn (randFibo(gl_FragCoord.xy) - 0.5) / 255.0;\n}const float TAU = 6.28318530718;vec3 Tonemap_tanh(vec3 x) {\nx = clamp(x, -40.0, 40.0);\nreturn (exp(x) - exp(-x)) / (exp(x) + exp(-x));\n}out vec4 fragColor;const float PI = 3.14159265359;\nconst float TWO_PI = 2.0 * PI;float luma(vec3 color) {\nreturn dot(color, vec3(0.299, 0.587, 0.114));\n}mat2 rot(float a) {\nreturn mat2(cos(a),-sin(a),sin(a),cos(a));\n}float drawPoint(vec2 uv, vec2 center, float scale, vec2 resolution, float skewVal, float angleVal, float thickness) {\nuv.x *= resolution.x/resolution.y;\ncenter.x *= resolution.x/resolution.y;\nvec2 skew = vec2(skewVal, 1. - skewVal) * 2.;\nuv = uv * rot(angleVal * TWO_PI) * skew;\ncenter = center * rot(angleVal * TWO_PI) * skew;\nfloat dist = distance(uv, center);\nfloat radius = scale * 0.25;float brightness = radius / max(0.0001, dist);\nbrightness = mix(brightness, brightness*brightness, thickness);\nreturn brightness;\n}float getBeam(vec2 uv, vec2 pos, float radius, float angleVal, float skewVal, float thickness, float time, float phaseVal, vec2 resolution) {\nreturn drawPoint(uv, pos, radius, resolution, skewVal, angleVal, thickness);\n}void main() {\nvec2 uv = vTextureCoord;\nvec4 bg = texture(uTexture, uv);\nvec2 pos = vec2(0.5, 0.5) + mix(vec2(0), (uMousePos-0.5), 1.0000);\nfloat beam = getBeam(uv, pos, 1.0000, 0.0000, 0.5000, 1.0000, uTime, 0.5000, uResolution);\nvec3 beamColor = beam * vec3(0, 0.14901960784313725, 0.3176470588235294);\nfloat ssBeam = beam / (beam + 1.0);\nbeamColor = mix(beamColor, vec3(0, 0.14901960784313725, 0.3176470588235294), mix(1.0, ssBeam, 0.0000)) * beam;float dither = deband();\nvec3 result = Tonemap_tanh(beamColor);\nfloat lum = luma(beamColor);\nresult += dither;float layerMix = 1.0000;\nvec4 color;vec3 blended = blend(1, result, bg.rgb);\ncolor = applyLayerMix(vec4(blended, 1.0), bg, layerMix);\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.25,"trackMouse":1,"trackAxes":"xy","data":{"depth":false,"uniforms":{},"isBackground":false},"id":"e22d400d-6b3f-4a19-a5b4-75c1d2b587cb","publicId":"beam"},{"breakpoints":[],"visible":true,"aspectRatio":1,"userDownsample":1,"layerType":"effect","type":"halftone","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 mediump float;\nin vec3 vVertexPosition;\nin vec2 vTextureCoord;\nuniform sampler2D uTexture;\nuniform vec2 uResolution;float luma(vec4 color) {\nreturn dot(color.rgb, vec3(0.299, 0.587, 0.114));\n}vec4 RGBtoCMYK (vec3 rgb) {\nfloat r = rgb.r;\nfloat g = rgb.g;\nfloat b = rgb.b;\nfloat k = min(1.0 - r, min(1.0 - g, 1.0 - b));\nvec3 cmy = vec3(0.0);\nfloat invK = 1.0 - k;\nif (invK != 0.0) {\ncmy.x = (1.0 - r - k) / invK;\ncmy.y = (1.0 - g - k) / invK;\ncmy.z = (1.0 - b - k) / invK;\n}\nreturn clamp(vec4(cmy, k), 0.0, 1.0);\n}vec3 CMYKtoRGB (vec4 cmyk, vec3 paperColor) {\nfloat r = (1.0 - cmyk.x) * (1.0 - cmyk.w);\nfloat g = (1.0 - cmyk.y) * (1.0 - cmyk.w);\nfloat b = (1.0 - cmyk.z) * (1.0 - cmyk.w);\nreturn paperColor * vec3(r, g, b);\n}float aastep(float value, float col) {\nfloat afwidth = 0.0600 * 200.0 * (1.0 / uResolution.x);\nfloat softness = 0.08 * smoothstep(0.0, 0.1, col);\nfloat total_width = afwidth + softness;\nfloat minval = -total_width;\nfloat maxval = total_width;\nreturn smoothstep(minval, maxval, value);\n}vec2 rotate2D(vec2 st, float degrees) {\nfloat c = cos(radians(degrees));\nfloat s = sin(radians(degrees));\nreturn vec2(c * st.x + s * st.y, c * st.y - s * st.x);\n}float getChannelVal(vec4 rgba, int channel) {\nif (channel == 0) return RGBtoCMYK(rgba.rgb).x;\nif (channel == 1) return RGBtoCMYK(rgba.rgb).y;\nif (channel == 2) return RGBtoCMYK(rgba.rgb).z;\nif (channel == 3) return RGBtoCMYK(rgba.rgb).w;\nif (channel == 4) return rgba.r;\nif (channel == 5) return rgba.g;\nif (channel == 6) return rgba.b;\nif (channel == 7) return 1.0 - luma(rgba);\nif (channel == 8) return luma(rgba);\nreturn 0.0;\n}float evaluateCell(vec2 offset, vec2 r_st, vec2 f_st, float rot, float scale, float aspectCorrection, float aspectRatio, int channel) {\nvec2 cell_center_r_st = floor(r_st) + offset + 0.5;\nvec2 cell_center_st = rotate2D(cell_center_r_st * aspectCorrection / scale, -rot);\nvec2 cell_center_uv = cell_center_st / vec2(aspectRatio, 1.0) + vec2(0.5, 0.5);\ncell_center_uv = clamp(cell_center_uv, 0.001, 0.999);\nvec4 tex_color = texture(uTexture, cell_center_uv);\nfloat col = getChannelVal(tex_color, channel);\nvec2 local_st = f_st - offset;\nfloat dist = length(local_st) * 1.64;float adjusted_col = clamp(col + -0.0300, 0.0, 1.0);\nfloat R = sqrt(adjusted_col) * 1.25;return aastep(R - dist, adjusted_col);\n}float halftoneDot(vec2 uv, int channel, float angle) {\nfloat aspectRatio = uResolution.x / uResolution.y;\nfloat aspectCorrection = mix(aspectRatio, 1./aspectRatio, 0.5);vec2 st = uv - vec2(0.5, 0.5);\nst *= vec2(aspectRatio, 1.);\nfloat scale = max(0.0600 * 200.0, 1.0);\nfloat rot = angle - 0.1700 * 360.0;\nvec2 r_st = scale * rotate2D(st, rot);\nr_st /= aspectCorrection;\nvec2 f_st = fract(r_st) - 0.5;\nfloat d0 = evaluateCell(vec2(0.0, 0.0), r_st, f_st, rot, scale, aspectCorrection, aspectRatio, channel);\nfloat d1 = evaluateCell(vec2(1.0, 0.0), r_st, f_st, rot, scale, aspectCorrection, aspectRatio, channel);\nfloat d2 = evaluateCell(vec2(-1.0, 0.0), r_st, f_st, rot, scale, aspectCorrection, aspectRatio, channel);\nfloat d3 = evaluateCell(vec2(0.0, 1.0), r_st, f_st, rot, scale, aspectCorrection, aspectRatio, channel);\nfloat d4 = evaluateCell(vec2(0.0, -1.0), r_st, f_st, rot, scale, aspectCorrection, aspectRatio, channel);return max(d0, max(max(d1, d2), max(d3, d4)));\n}vec4 getCMYK(vec2 uv) {\nfloat c = halftoneDot(uv, 0, 15.);\nfloat m = halftoneDot(uv, 1, 75.);\nfloat y = halftoneDot(uv, 2, 0.);\nfloat k = halftoneDot(uv, 3, 45.);\nvec3 paperColor = vec3(1.0);\nreturn vec4(CMYKtoRGB(vec4(c, m, y, k), paperColor), 1.0);\n}vec4 getHalftone(vec2 uv) {\nreturn getCMYK(uv);\n}out vec4 fragColor;\nvoid main() {\nvec4 clipColor = texture(uTexture, vTextureCoord);\nif(clipColor.a == 0.) {\nfragColor = vec4(0);\nreturn;\n}\nvec2 uv = vTextureCoord;\nvec4 color = texture(uTexture, uv);\nfloat alpha = color.a;\nvec4 halftone = getHalftone(uv);\nhalftone *= alpha;\ncolor = mix(color, halftone, 1.0000);\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":{"depth":false,"uniforms":{},"isBackground":false},"id":"a02c50c7-e1c5-4d53-91c5-bcf823cb898c","publicId":"halftone"},{"breakpoints":[],"visible":true,"aspectRatio":1,"userDownsample":1,"layerType":"effect","type":"normalMap","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 sampler2D uTexture;\nuniform vec2 uResolution;\nvec3 blend (int blendMode, vec3 src, vec3 dst) {\nreturn vec3((src.x == 0.0) ? 0.0 : (1.0 - ((1.0 - dst.x) / src.x)), (src.y == 0.0) ? 0.0 : (1.0 - ((1.0 - dst.y) / src.y)), (src.z == 0.0) ? 0.0 : (1.0 - ((1.0 - dst.z) / 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 getHeight(vec4 color) {\nreturn dot(color.rgb, vec3(0.299, 0.587, 0.114));\n}vec3 calculateNormal(vec2 uv, float strength) {\nvec2 texelSize = 1.0 / uResolution;\nfloat tl = getHeight(texture(uTexture, uv + vec2(-texelSize.x, -texelSize.y)));\nfloat tm = getHeight(texture(uTexture, uv + vec2(0.0, -texelSize.y)));\nfloat tr = getHeight(texture(uTexture, uv + vec2(texelSize.x, -texelSize.y)));\nfloat ml = getHeight(texture(uTexture, uv + vec2(-texelSize.x, 0.0)));\nfloat mr = getHeight(texture(uTexture, uv + vec2(texelSize.x, 0.0)));\nfloat bl = getHeight(texture(uTexture, uv + vec2(-texelSize.x, texelSize.y)));\nfloat bm = getHeight(texture(uTexture, uv + vec2(0.0, texelSize.y)));\nfloat br = getHeight(texture(uTexture, uv + vec2(texelSize.x, texelSize.y)));\nfloat dX = (tr + 2.0 * mr + br) - (tl + 2.0 * ml + bl);\nfloat dY = (bl + 2.0 * bm + br) - (tl + 2.0 * tm + tr);\nif (0 == 1) {\ndX = -dX;\ndY = -dY;\n}\nfloat levelExp = 1.0000 * 5.0;\nfloat levelMultiplier = 1.0 + pow(2.0, levelExp);\nfloat effectiveStrength = strength * levelMultiplier;\nvec3 normal = normalize(vec3(-dX * effectiveStrength, -dY * effectiveStrength, 1.0));\nnormal = normal * 0.5 + 0.5;\nreturn normal;\n}vec4 colorMode(vec2 uv, vec3 normalMap, vec4 bg) {\nvec3 normal = normalMap * 2.0 - 1.0;\nvec2 pos = vec2(vec2(0.5, 0.5).x, vec2(0.5, 0.5).y - 0.01);\nvec3 lightDir = normalize(vec3(pos.x * 2.0 - 1.0, pos.y * 2.0 - 1.0, 0.0000));\nfloat light = max(dot(normal, lightDir), 0.0);\nvec4 normalColor = vec4(vec3(1, 1, 1) * light, 1.0);\nnormalColor.rgb = blend(9, bg.rgb, normalColor.rgb);return vec4(normalColor.rgb, 1.0);\n}vec4 calculateNormalMap(vec2 uv, vec4 bg) {\nvec3 normalMap = calculateNormal(uv, 1.0000 * 3.);\nvec4 finalColor;\nfinalColor = colorMode(uv, normalMap, bg);\nreturn finalColor;\n}void main() {\nvec2 uv = vTextureCoord;\nvec4 bg = texture(uTexture, uv);\nvec4 color = calculateNormalMap(uv, bg);\ncolor = applyLayerMix(color, bg, 1.0000);\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":0,"trackAxes":"xy","data":{"depth":false,"uniforms":{},"isBackground":false},"id":"374fa41d-76a3-4577-899b-26cde33fd29b","publicId":"normal_map"}],"options":{"name":"Goey Balls (Remix)","fps":60,"dpi":1.5,"scale":1,"includeLogo":false,"isProduction":false,"flatten":false},"version":"2.1.12","id":"PefBzCHP4cJrL82eVOzg"}Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| 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: 198k | Updated | Claude CodeCodex | Verified | Install |
| 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: 198k | Updated | Claude CodeCodex | Verified | Install |
| 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: 198k | Updated | Claude CodeCodex | Verified | Install |
| 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: 198k | Updated | Claude CodeCodex | Verified | Install |