Skip to content

@remotion/effects: Add dot grid effect#7736

Merged
JonnyBurger merged 2 commits into
mainfrom
jonnyburger/inverse-dot-grid
May 28, 2026
Merged

@remotion/effects: Add dot grid effect#7736
JonnyBurger merged 2 commits into
mainfrom
jonnyburger/inverse-dot-grid

Conversation

@JonnyBurger
Copy link
Copy Markdown
Member

@JonnyBurger JonnyBurger commented May 28, 2026

Summary

  • Add dotGrid() to @remotion/effects with dotSize, gridSize, and invert controls.
  • Register the package subpath, docs page, interactive demo, TOC preview, and generated docs card.
  • Generate the TOC preview as a PNG so transparent areas stay transparent.
  • Add parameter validation and effect key coverage tests.

Fixes #7706

Checks

  • cd packages/effects && bun test src/test
  • bun run build
  • bun run formatting
  • bun run build-docs

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented May 28, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
bugs Ready Ready Preview, Comment May 28, 2026 5:35am
remotion Ready Ready Preview, Comment May 28, 2026 5:35am

Request Review

Copy link
Copy Markdown
Contributor

@pullfrog pullfrog Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Reviewed changes — adding the inverseDotGrid() canvas effect to @remotion/effects with WebGL2 shader, parameter validation, interactive docs demo, and test coverage.

  • Add inverseDotGrid() effect implementation — WebGL2 fragment shader computes grid-aligned dots with smoothstep anti-aliasing, supports dotSize, gridSize, and invert parameters.
  • Register package exports and bundle entry — subpath ./inverse-dot-grid added to package.json exports and typesVersions, plus bundle.ts entrypoint.
  • Add docs page, demo, and TOC preview — full MDX documentation with live demo, sidebar entry, table-of-contents card, and generated article image.
  • Add parameter validation and tests — validates dotSize (non-negative finite), gridSize (positive finite), and invert (boolean); tests cover defaults, rejection of invalid values, and distinct effect keys for all parameter combinations.

Pullfrog  | View workflow run | Using Kimi K2𝕏

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@JonnyBurger JonnyBurger changed the title @remotion/effects: Add inverse dot grid effect @remotion/effects: Add dot grid effect May 28, 2026
@JonnyBurger JonnyBurger merged commit d90c1c5 into main May 28, 2026
16 checks passed
@JonnyBurger JonnyBurger deleted the jonnyburger/inverse-dot-grid branch May 28, 2026 05:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Inverse dot grid effect

1 participant