🎥 Make videos programmatically with React
`@remotion/starburst`: Promote starburst effect (#7692)
Jonny Burger9844f72c4ddf
diff --git a/packages/docs/components/demos/index.tsx b/packages/docs/components/demos/index.tsxindex 3253abcb54..951e2296fb 100644--- a/packages/docs/components/demos/index.tsx+++ b/packages/docs/components/demos/index.tsx@@ -31,6 +31,7 @@ import {effectsMirrorDemo,effectsSaturationDemo,effectsScaleDemo,+ effectsStarburstDemo,effectsTintDemo,effectsUvTranslateDemo,effectsVignetteDemo,@@ -109,6 +110,7 @@ const demos: DemoType[] = [effectsChromaticAberrationDemo,effectsWaveDemo,effectsHalftoneDemo,+ effectsStarburstDemo,arrowDemo,triangleDemo,rectDemo,diff --git a/packages/docs/components/demos/types.ts b/packages/docs/components/demos/types.tsindex 489844513b..bf29650a41 100644--- a/packages/docs/components/demos/types.ts+++ b/packages/docs/components/demos/types.ts@@ -13,6 +13,7 @@ import {EffectsInvertPreview} from '../effects/effects-invert-preview';import {EffectsMirrorPreview} from '../effects/effects-mirror-preview';import {EffectsSaturationPreview} from '../effects/effects-saturation-preview';import {EffectsScalePreview} from '../effects/effects-scale-preview';+import {EffectsStarburstPreview} from '../effects/effects-starburst-preview';import {EffectsTintPreview} from '../effects/effects-tint-preview';import {EffectsUvTranslatePreview,@@ -2093,6 +2094,65 @@ export const effectsHalftoneDemo: DemoType = {],};+export const effectsStarburstDemo: DemoType = {+ comp: EffectsStarburstPreview,+ compHeight: 720,+ compWidth: 1280,+ durationInFrames: 1,+ fps: 30,+ id: 'effects-starburst',+ autoPlay: false,+ controls: false,+ logLevel: 'info',+ options: [+ {+ name: 'rays',+ type: 'numeric',+ default: 16,+ min: 2,+ max: 100,+ step: 1,+ optional: 'no',+ },+ {+ name: 'rotation',+ type: 'numeric',+ default: 0,+ min: 0,+ max: 360,+ step: 1,+ optional: 'no',+ },+ {+ name: 'smoothness',+ type: 'numeric',+ default: 0,+ min: 0,+ max: 1,+ step: 0.01,+ optional: 'no',+ },+ {+ name: 'originOffsetX',+ type: 'numeric',+ default: 0,+ min: -1,+ max: 1,+ step: 0.01,+ optional: 'no',+ },+ {+ name: 'originOffsetY',+ type: 'numeric',+ default: 0,+ min: -1,+ max: 1,+ step: 0.01,+ optional: 'no',+ },+ ],+};+export const htmlInCanvasDemoWebGL: DemoType = {comp: HtmlInCanvasDocsDemoWebGL,compHeight: 1080,diff --git a/packages/docs/components/effects/effects-starburst-preview.tsx b/packages/docs/components/effects/effects-starburst-preview.tsxnew file mode 100644index 0000000000..f180e28727--- /dev/null+++ b/packages/docs/components/effects/effects-starburst-preview.tsx@@ -0,0 +1,37 @@+import {starburst} from '@remotion/starburst';+import React from 'react';+import {CanvasImage} from 'remotion';+import {EFFECTS_PREVIEW_IMAGE_SRC} from './effects-preview-image';++const fullSize: React.CSSProperties = {+ width: '100%',+ height: '100%',+};++export const EffectsStarburstPreview: React.FC<{+ readonly rays: number;+ readonly rotation: number;+ readonly smoothness: number;+ readonly originOffsetX: number;+ readonly originOffsetY: number;+}> = ({rays, rotation, smoothness, originOffsetX, originOffsetY}) => {+ return (+ <CanvasImage+ src={EFFECTS_PREVIEW_IMAGE_SRC}+ width={1280}+ height={720}+ fit="cover"+ style={fullSize}+ effects={[+ starburst({+ rays,+ colors: ['#ffdd00', '#ff8800'],+ rotation,+ smoothness,+ originOffsetX,+ originOffsetY,+ }),+ ]}+ />+ );+};diff --git a/packages/docs/components/effects/effects-vignette-preview.tsx b/packages/docs/components/effects/effects-vignette-preview.tsxindex 6997214670..91d1191169 100644--- a/packages/docs/components/effects/effects-vignette-preview.tsx+++ b/packages/docs/components/effects/effects-vignette-preview.tsx@@ -11,6 +11,11 @@ const checkerboard: React.CSSProperties = {backgroundPosition: '0 0, 0 20px, 20px -20px, -20px 0',};+const fullSize: React.CSSProperties = {+ width: '100%',+ height: '100%',+};+export const EffectsVignettePreview: React.FC<{readonly amount: number;readonly radius: number;@@ -26,6 +31,7 @@ export const EffectsVignettePreview: React.FC<{width={1280}height={720}fit="cover"+ style={fullSize}effects={[vignette({amount,diff --git a/packages/docs/docs/effects/table-of-contents.tsx b/packages/docs/docs/effects/table-of-contents.tsxindex db594bb284..7db18cb27f 100644--- a/packages/docs/docs/effects/table-of-contents.tsx+++ b/packages/docs/docs/effects/table-of-contents.tsx@@ -165,6 +165,13 @@ const categories: {name: 'halftone()',description: 'Halftone dot grid effect',},+ {+ link: '/docs/starburst/starburst-effect',+ preview: '/img/effects-starburst-preview.jpg',+ alt: 'starburst effect preview',+ name: 'starburst()',+ description: 'Starburst ray effect',+ },],},];diff --git a/packages/docs/docs/starburst/index.mdx b/packages/docs/docs/starburst/index.mdxindex 3ceaeef68b..2beac40047 100644--- a/packages/docs/docs/starburst/index.mdx+++ b/packages/docs/docs/starburst/index.mdx@@ -14,7 +14,7 @@ import {TableOfContents} from './table-of-contents';<Installation pkg="@remotion/starburst" />-## Components+## APIs<TableOfContents />diff --git a/packages/docs/docs/starburst/starburst-effect.mdx b/packages/docs/docs/starburst/starburst-effect.mdxnew file mode 100644index 0000000000..1477d16af1--- /dev/null+++ b/packages/docs/docs/starburst/starburst-effect.mdx@@ -0,0 +1,91 @@+---+image: /generated/articles-docs-starburst-starburst-effect.png+slug: /starburst/starburst-effect+title: starburst()+sidebar_label: starburst()+crumb: '@remotion/starburst'+---++# starburst()<AvailableFrom v="4.0.468" />++_Part of the [`@remotion/starburst`](/docs/starburst/api) package._++Renders a WebGL2-based retro starburst ray pattern as an effect for canvas-based components such as [`<Video>`](/docs/media/video), [`<HtmlInCanvas>`](/docs/remotion/html-in-canvas) and [`<Solid>`](/docs/solid).++Use it when you want to apply starburst rays through an `effects` array instead of rendering the [`<Starburst>`](/docs/starburst/starburst) component.++`starburst()` replaces the underlying pixels instead of blending over them. It is usually the first effect in a chain, or applied to a [`<Solid>`](/docs/solid) background before other effects.++## Preview++<Demo type="effects-starburst" />++## Example++```tsx twoslash title="MyComp.tsx"+import {starburst} from '@remotion/starburst';+import {AbsoluteFill, Solid} from 'remotion';++export const MyComp: React.FC = () => {+ return (+ <AbsoluteFill>+ <Solid+ width={1280}+ height={720}+ color="black"+ effects={[+ starburst({+ rays: 16,+ colors: ['#ffdd00', '#ff8800', '#ff4400'],+ rotation: 15,+ smoothness: 0.1,+ }),+ ]}+ />+ </AbsoluteFill>+ );+};+```++## API++Pass an object with the following properties.++### `rays`++The number of rays in the starburst pattern. Must be between `2` and `100`.++### `colors`++An array of hex color strings for the rays. Colors are assigned to rays cyclically. Must contain at least 2 colors.++### `rotation?`++Rotates the starburst pattern in degrees. Defaults to `0`.++### `smoothness?`++Controls the softness of the ray edges. `0` gives hard edges, `1` gives very soft edges. Default: `0`.++### `originOffsetX?`++Shifts the origin of the starburst pattern horizontally. `-1` moves the origin to the left edge, `1` to the right edge. Default: `0` (centered).++### `originOffsetY?`++Shifts the origin of the starburst pattern vertically. `-1` moves the origin to the top edge, `1` to the bottom edge. Default: `0` (centered).++### `disabled?`++When `true`, the effect is skipped. Defaults to `false`.++## Requirements++`starburst()` uses a WebGL2 backend. During renders, enable WebGL via [`Config.setChromiumOpenGlRenderer()`](/docs/config#setchromiumopenglrenderer) (for example `'angle'`). See [Using WebGL during renders](/docs/remotion/html-in-canvas#using-webgl-during-renders).++## See also++- [`@remotion/starburst`](/docs/starburst/api)+- [`<Starburst>`](/docs/starburst/starburst)+- [`@remotion/effects`](/docs/effects/api)+- [Source code for this effect](https://github.com/remotion-dev/remotion/blob/main/packages/starburst/src/starburst-effect.ts)diff --git a/packages/docs/docs/starburst/starburst.mdx b/packages/docs/docs/starburst/starburst.mdxindex a62f46f5fb..050da640ab 100644--- a/packages/docs/docs/starburst/starburst.mdx+++ b/packages/docs/docs/starburst/starburst.mdx@@ -77,5 +77,6 @@ Shifts the origin of the starburst pattern vertically. `-1` moves the origin to## See also+- [`starburst()` effect](/docs/starburst/starburst-effect)- [Source code for this component](https://github.com/remotion-dev/remotion/blob/main/packages/starburst/src/Starburst.tsx)- [`<Sequence>`](/docs/sequence)diff --git a/packages/docs/docs/starburst/table-of-contents.tsx b/packages/docs/docs/starburst/table-of-contents.tsxindex 3501c441e1..f4af43f0fa 100644--- a/packages/docs/docs/starburst/table-of-contents.tsx+++ b/packages/docs/docs/starburst/table-of-contents.tsx@@ -5,6 +5,16 @@ import {TOCItem} from '../../components/TableOfContents/TOCItem';export const TableOfContents: React.FC = () => {return (<div>+ <h3>Effects</h3>+ <Grid>+ <TOCItem link="/docs/starburst/starburst-effect">+ <strong>+ <code>starburst()</code>+ </strong>+ <div>Apply a starburst ray effect</div>+ </TOCItem>+ </Grid>+ <h3>Components</h3><Grid><TOCItem link="/docs/starburst/starburst"><strong>{'<Starburst>'}</strong>diff --git a/packages/docs/sidebars.ts b/packages/docs/sidebars.tsindex c199521bff..f51040f3bf 100644--- a/packages/docs/sidebars.ts+++ b/packages/docs/sidebars.ts@@ -704,7 +704,7 @@ const sidebars: SidebarsConfig = {type: 'doc',id: 'starburst/starburst-api',},- items: ['starburst/starburst-component'],+ items: ['starburst/starburst-effect', 'starburst/starburst-component'],},{type: 'category',diff --git a/packages/docs/src/data/articles.ts b/packages/docs/src/data/articles.tsindex b4e29b6784..e66f499a36 100644--- a/packages/docs/src/data/articles.ts+++ b/packages/docs/src/data/articles.ts@@ -6096,6 +6096,15 @@ export const articles = [noAi: false,slug: 'starburst/api',},+ {+ id: 'starburst/starburst-effect',+ title: 'starburst()',+ relativePath: 'docs/starburst/starburst-effect.mdx',+ compId: 'articles-docs-starburst-starburst-effect',+ crumb: '@remotion/starburst',+ noAi: false,+ slug: 'starburst/starburst-effect',+ },{id: 'starburst-component',title: '<Starburst>',diff --git a/packages/docs/static/generated/articles-docs-starburst-starburst-effect.png b/packages/docs/static/generated/articles-docs-starburst-starburst-effect.pngnew file mode 100644index 0000000000..b59c5a41acBinary files /dev/null and b/packages/docs/static/generated/articles-docs-starburst-starburst-effect.png differdiff --git a/packages/docs/static/img/effects-starburst-preview.jpg b/packages/docs/static/img/effects-starburst-preview.jpgnew file mode 100644index 0000000000..e945887cf6Binary files /dev/null and b/packages/docs/static/img/effects-starburst-preview.jpg differdiff --git a/packages/docs/static/img/effects-vignette-preview.jpg b/packages/docs/static/img/effects-vignette-preview.jpgindex 375448156a..1410c01ece 100644Binary files a/packages/docs/static/img/effects-vignette-preview.jpg and b/packages/docs/static/img/effects-vignette-preview.jpg differdiff --git a/packages/example/src/EffectsTestbed/EffectsTestbed.tsx b/packages/example/src/EffectsTestbed/EffectsTestbed.tsxindex d0a2a72cb9..5d2c4c6507 100644--- a/packages/example/src/EffectsTestbed/EffectsTestbed.tsx+++ b/packages/example/src/EffectsTestbed/EffectsTestbed.tsx@@ -4,7 +4,7 @@ import {tint} from '@remotion/effects/tint';import {wave} from '@remotion/effects/wave';import {LightLeakInternals} from '@remotion/light-leaks';import {Video} from '@remotion/media';-import {StarburstInternals} from '@remotion/starburst';+import {starburst} from '@remotion/starburst';import React from 'react';import {AbsoluteFill, Solid, useCurrentFrame, useVideoConfig} from 'remotion';@@ -133,7 +133,7 @@ const AnimatedStackVideo: React.FC = () => {loopobjectFit="cover"effects={[- StarburstInternals.starburst({+ starburst({colors: ['#ff5fa2', '#ff0000'],rays: 12,}),diff --git a/packages/starburst/src/index.ts b/packages/starburst/src/index.tsindex 30296583bc..488b151157 100644--- a/packages/starburst/src/index.ts+++ b/packages/starburst/src/index.ts@@ -3,6 +3,7 @@ import {starburst} from './starburst-effect';export {Starburst} from './Starburst';export type {StarburstProps} from './Starburst';export {+ starburst,starburstEffectSchema,type StarburstEffectParams,} from './starburst-effect';diff --git a/packages/starburst/src/starburst-effect.ts b/packages/starburst/src/starburst-effect.tsindex 62b11b326c..229145065c 100644--- a/packages/starburst/src/starburst-effect.ts+++ b/packages/starburst/src/starburst-effect.ts@@ -29,14 +29,6 @@ export const starburstEffectSchema = {default: 0,description: 'Edge Smoothness',},- vignette: {- type: 'number',- min: 0,- max: 1,- step: 0.01,- default: 1,- description: 'Vignette',- },originOffsetX: {type: 'number',min: -1,@@ -60,7 +52,6 @@ export type StarburstEffectParams = {readonly colors: readonly string[];readonly rotation?: number;readonly smoothness?: number;- readonly vignette?: number;readonly originOffsetX?: number;readonly originOffsetY?: number;};@@ -70,7 +61,6 @@ type StarburstResolved = {colors: readonly string[];rotation: number;smoothness: number;- vignette: number;originOffsetX: number;originOffsetY: number;};@@ -80,7 +70,6 @@ const resolve = (p: StarburstEffectParams): StarburstResolved => ({colors: p.colors,rotation: p.rotation ?? 0,smoothness: p.smoothness ?? 0,- vignette: p.vignette ?? 1,originOffsetX: p.originOffsetX ?? 0,originOffsetY: p.originOffsetY ?? 0,});@@ -130,18 +119,6 @@ const validateStarburstEffectParams = (params: StarburstEffectParams): void => {);}- if (typeof r.vignette !== 'number' || !Number.isFinite(r.vignette)) {- throw new TypeError(- `"vignette" must be a finite number, but got ${JSON.stringify(params.vignette)}`,- );- }-- if (r.vignette < 0 || r.vignette > 1) {- throw new RangeError(- `"vignette" must be between 0 and 1, but got ${r.vignette}`,- );- }-if (typeof r.originOffsetX !== 'number' ||!Number.isFinite(r.originOffsetX)@@ -178,14 +155,12 @@ void main() {const STARBURST_FS = /* glsl */ `#version 300 esprecision highp float;-uniform sampler2D uSource;uniform sampler2D colorPalette;uniform float numRays;uniform float rotationOffset;uniform float smoothEdge;uniform vec2 resolution;uniform float numColors;-uniform float vignetteAmount;uniform vec2 originOffset;in vec2 vUv;@@ -221,16 +196,7 @@ void main() {vec3 prevCol = texture(colorPalette, vec2(prevTexCoord, 0.5)).rgb;col = mix(col, prevCol, blendStart);- vec2 vignetteCenter = (uv - 0.5) * vec2(resolution.x / resolution.y, 1.0);- float dist = length(vignetteCenter);- float radius = vignetteAmount * 3.0;- float burstAlpha = smoothstep(radius, radius * 0.5, dist);-- vec4 src = texture(uSource, vUv);- vec3 burstPm = col * burstAlpha;- vec3 outRgb = burstPm + src.rgb * (1.0 - burstAlpha);- float outA = burstAlpha + src.a * (1.0 - burstAlpha);- fragColor = vec4(outRgb, outA);+ fragColor = vec4(col, 1.0);}`;@@ -239,16 +205,13 @@ type StarburstGlState = {program: WebGLProgram;vao: WebGLVertexArrayObject;vbo: WebGLBuffer;- sourceTexture: WebGLTexture;paletteTexture: WebGLTexture;- uSource: WebGLUniformLocation | null;uColorPalette: WebGLUniformLocation | null;uNumRays: WebGLUniformLocation | null;uRotationOffset: WebGLUniformLocation | null;uSmoothEdge: WebGLUniformLocation | null;uResolution: WebGLUniformLocation | null;uNumColors: WebGLUniformLocation | null;- uVignetteAmount: WebGLUniformLocation | null;uOriginOffset: WebGLUniformLocation | null;cachedPaletteKey: string;palettePixelData: Uint8Array;@@ -300,11 +263,11 @@ const linkProgram = (export const starburst = createEffect<StarburstEffectParams, StarburstGlState>({type: 'remotion/starburst',label: 'starburst()',- documentationLink: 'https://www.remotion.dev/docs/starburst/starburst',+ documentationLink: 'https://www.remotion.dev/docs/starburst/starburst-effect',backend: 'webgl2',calculateKey: (params) => {const r = resolve(params);- return `starburst-${r.rays}-${r.colors.join('|')}-${r.rotation}-${r.smoothness}-${r.vignette}-${r.originOffsetX}-${r.originOffsetY}`;+ return `starburst-${r.rays}-${r.colors.join('|')}-${r.rotation}-${r.smoothness}-${r.originOffsetX}-${r.originOffsetY}`;},setup: (target) => {const gl = target.getContext('webgl2', {@@ -352,16 +315,6 @@ export const starburst = createEffect<StarburstEffectParams, StarburstGlState>({gl.bindVertexArray(null);- const sourceTexture = gl.createTexture();- if (!sourceTexture) {- throw new Error('Failed to create WebGL source texture');- }-- gl.bindTexture(gl.TEXTURE_2D, sourceTexture);- gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_S, gl.CLAMP_TO_EDGE);- gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_T, gl.CLAMP_TO_EDGE);- gl.bindTexture(gl.TEXTURE_2D, null);-const paletteTexture = gl.createTexture();if (!paletteTexture) {throw new Error('Failed to create WebGL palette texture');@@ -379,37 +332,31 @@ export const starburst = createEffect<StarburstEffectParams, StarburstGlState>({program,vao,vbo,- sourceTexture,paletteTexture,- uSource: gl.getUniformLocation(program, 'uSource'),uColorPalette: gl.getUniformLocation(program, 'colorPalette'),uNumRays: gl.getUniformLocation(program, 'numRays'),uRotationOffset: gl.getUniformLocation(program, 'rotationOffset'),uSmoothEdge: gl.getUniformLocation(program, 'smoothEdge'),uResolution: gl.getUniformLocation(program, 'resolution'),uNumColors: gl.getUniformLocation(program, 'numColors'),- uVignetteAmount: gl.getUniformLocation(program, 'vignetteAmount'),uOriginOffset: gl.getUniformLocation(program, 'originOffset'),cachedPaletteKey: '',palettePixelData: new Uint8Array(0),};},- apply: ({source, width, height, params, state, flipSourceY}) => {+ apply: ({width, height, params, state}) => {const r = resolve(params);const {gl,program,vao,- sourceTexture,paletteTexture,- uSource,uColorPalette,uNumRays,uRotationOffset,uSmoothEdge,uResolution,uNumColors,- uVignetteAmount,uOriginOffset,} = state;@@ -442,20 +389,6 @@ export const starburst = createEffect<StarburstEffectParams, StarburstGlState>({gl.bindVertexArray(vao);gl.activeTexture(gl.TEXTURE0);- gl.bindTexture(gl.TEXTURE_2D, sourceTexture);- gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, gl.LINEAR);- gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, gl.LINEAR);- gl.pixelStorei(gl.UNPACK_FLIP_Y_WEBGL, flipSourceY);- gl.texImage2D(- gl.TEXTURE_2D,- 0,- gl.RGBA,- gl.RGBA,- gl.UNSIGNED_BYTE,- source as TexImageSource,- );-- gl.activeTexture(gl.TEXTURE1);gl.bindTexture(gl.TEXTURE_2D, paletteTexture);if (paletteDirty) {gl.texImage2D(@@ -471,13 +404,11 @@ export const starburst = createEffect<StarburstEffectParams, StarburstGlState>({);}- if (uSource) gl.uniform1i(uSource, 0);- if (uColorPalette) gl.uniform1i(uColorPalette, 1);+ if (uColorPalette) gl.uniform1i(uColorPalette, 0);if (uNumRays) gl.uniform1f(uNumRays, r.rays);if (uNumColors) gl.uniform1f(uNumColors, r.colors.length);if (uRotationOffset) gl.uniform1f(uRotationOffset, rotationRad);if (uSmoothEdge) gl.uniform1f(uSmoothEdge, r.smoothness);- if (uVignetteAmount) gl.uniform1f(uVignetteAmount, r.vignette);if (uOriginOffset)gl.uniform2f(uOriginOffset, r.originOffsetX, r.originOffsetY);if (uResolution) gl.uniform2f(uResolution, width, height);@@ -488,11 +419,10 @@ export const starburst = createEffect<StarburstEffectParams, StarburstGlState>({gl.bindTexture(gl.TEXTURE_2D, null);gl.useProgram(null);},- cleanup: ({gl, program, vao, vbo, sourceTexture, paletteTexture}) => {+ cleanup: ({gl, program, vao, vbo, paletteTexture}) => {gl.deleteBuffer(vbo);gl.deleteProgram(program);gl.deleteVertexArray(vao);- gl.deleteTexture(sourceTexture);gl.deleteTexture(paletteTexture);},schema: starburstEffectSchema,diff --git a/packages/starburst/src/test/starburst-effect-params.test.ts b/packages/starburst/src/test/starburst-effect-params.test.tsindex 1582f4754e..4f924b8549 100644--- a/packages/starburst/src/test/starburst-effect-params.test.ts+++ b/packages/starburst/src/test/starburst-effect-params.test.ts@@ -15,8 +15,52 @@ test('starburst() accepts valid params', () => {).not.toThrow();});+test('starburst() exposes its documentation link', () => {+ expect(+ starburst({rays: 12, colors: ['#ff0000', '#00ff00']}).definition+ .documentationLink,+ ).toBe('https://www.remotion.dev/docs/starburst/starburst-effect');+});+test('starburst() exposes its API name as the Studio label', () => {expect(starburst({rays: 12, colors: ['#ff0000', '#00ff00']}).definition.label,).toBe('starburst()');});++test('starburst() does not expose the removed vignette control', () => {+ expect(+ 'vignette' in+ starburst({rays: 12, colors: ['#ff0000', '#00ff00']}).definition.schema,+ ).toBe(false);+});++test('starburst() parameters produce distinct effect keys', () => {+ const defaultStarburst = starburst({+ rays: 12,+ colors: ['#ff0000', '#00ff00'],+ });+ const moreRays = starburst({+ rays: 24,+ colors: ['#ff0000', '#00ff00'],+ });+ const rotated = starburst({+ rays: 12,+ colors: ['#ff0000', '#00ff00'],+ rotation: 45,+ });+ const smoother = starburst({+ rays: 12,+ colors: ['#ff0000', '#00ff00'],+ smoothness: 0.5,+ });++ expect(+ new Set([+ defaultStarburst.effectKey,+ moreRays.effectKey,+ rotated.effectKey,+ smoother.effectKey,+ ]).size,+ ).toBe(4);+});