SmokeFill
Fill a shape with swirling fluid smoke that interacts with the shape boundary
Props
Prop
Details
colorAstringDefault:
#8cf3ffColor of fresh smoke
colorAstringDefault: #8cf3ffColor of fresh smoke
colorBstringDefault:
#04a0d6Color smoke transitions to as it ages
colorBstringDefault: #04a0d6Color smoke transitions to as it ages
center{x: number, y: number}Default:
{"x":0.5,"y":0.5}Center position of the shape
center{x: number, y: number}Default: {"x":0.5,"y":0.5}Center position of the shape
scalenumberDefault:
1Scale of the shape (1 = default size)
scalenumberDefault: 1Scale of the shape (1 = default size)
emitFrom{x: number, y: number}Default:
{"x":0.5,"y":0.5}Emission source point within the shape
emitFrom{x: number, y: number}Default: {"x":0.5,"y":0.5}Emission source point within the shape
directionnumberDefault:
0Emission direction (0 = up, 90 = right, 180 = down, 270 = left)
directionnumberDefault: 0Emission direction (0 = up, 90 = right, 180 = down, 270 = left)
speednumberDefault:
10Emission velocity strength
speednumberDefault: 10Emission velocity strength
spreadnumberDefault:
60Emission cone angle in degrees
spreadnumberDefault: 60Emission cone angle in degrees
emitRadiusnumberDefault:
0.03Size of the emission area
emitRadiusnumberDefault: 0.03Size of the emission area
intensitynumberDefault:
1Smoke emission density
intensitynumberDefault: 1Smoke emission density
dissipationnumberDefault:
0.3How fast smoke fades over time
dissipationnumberDefault: 0.3How fast smoke fades over time
detailnumberDefault:
25Fine-scale swirling detail
detailnumberDefault: 25Fine-scale swirling detail
gravitynumberDefault:
0.5Downward gravitational pull on smoke — 0 = weightless, negative values = smoke rises
gravitynumberDefault: 0.5Downward gravitational pull on smoke — 0 = weightless, negative values = smoke rises
colorDecaynumberDefault:
0.4How quickly smoke shifts from Color A to Color B
colorDecaynumberDefault: 0.4How quickly smoke shifts from Color A to Color B
mouseInfluencenumberDefault:
0.1Strength of cursor influence
mouseInfluencenumberDefault: 0.1Strength of cursor influence
mouseRadiusnumberDefault:
0.1Radius of cursor influence area
mouseRadiusnumberDefault: 0.1Radius of cursor influence area
colorSpace"linear" | "oklch" | "oklab" | "hsl" | "hsv" | "lch"Default:
linearColor space for color interpolation
colorSpace"linear" | "oklch" | "oklab" | "hsl" | "hsv" | "lch"Default: linearColor space for color interpolation
shapeShapeConfigDefault:
circleSDFShape to render — choose from 11 built-in analytical shapes or supply a custom SDF. See the Shape Effects guide for all available shapes and their options.
shapeShapeConfigDefault: circleSDFShape to render — choose from 11 built-in analytical shapes or supply a custom SDF. See the Shape Effects guide for all available shapes and their options.
shapeSdfUrlstringDefault:
""URL to a pre-generated SDF `.bin` file — when non-empty, activates SVG mode and triggers a shader recompile. See the Shape Effects guide for how to generate an SDF from an SVG.
shapeSdfUrlstringDefault: ""URL to a pre-generated SDF `.bin` file — when non-empty, activates SVG mode and triggers a shader recompile. See the Shape Effects guide for how to generate an SDF from an SVG.