-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathClouds.PSSVG.ps1
More file actions
15 lines (13 loc) · 655 Bytes
/
Clouds.PSSVG.ps1
File metadata and controls
15 lines (13 loc) · 655 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#requires -Module PSSVG
#.SYNOPSIS
# Generates clouds using SVG
#.DESCRIPTION
# Generates a cloud effect using fractal noise and blending modes.
SVG -viewBox 1920, 1080 -Content @(
SVG.filter -id 'noise1' -x '0' -y '0' -width '100%' -height '100%' -Content @(
SVG.feTurbulence -baseFrequency '0.025' -Type 'fractalNoise' -NumOctaves 4
SVG.feGaussianBlur -stdDeviation 0.9
SVG.feBlend -In 'SourceGraphic' -Mode color-burn
)
SVG.rect -x '0' -y '0' -width 100% -height 100% -style 'filter: url(#noise1);' -Fill '#4488ff' -Opacity .2
) -OutputPath (Join-Path $psScriptRoot "Clouds.svg") -Width '100%' -Height '100%'