water

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2026 License: Apache-2.0, MIT Imports: 4 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package water is pixelfx's water category: bubbles, drips, fountains, geysers, rain splashes, ripples, splashes, water jets, water orbs, waterfalls, crashing waves and whirlpools, each a pixelfx.Effect registered as "water/<name>" when the package is imported.

Index

Constants

This section is empty.

Variables

View Source
var Bubbles = &pixelfx.Effect{
	Meta: pixelfx.Meta{
		Name:     "Bubbles",
		Desc:     "Bubbles stream up from a vent of pebbles, wobbling and swelling as they rise, flare as they cross shafts of light from the surface, then dome up and pop there.",
		Tags:     []string{"water", "bubbles", "underwater", "vent", "ambient", "loop"},
		Size:     [2]int{104, 112},
		Origin:   [2]int{52, 104},
		Duration: bubblesDuration,
		Loop:     true,
		FPS:      30,
		BG:       "ground",
		Options: []pixelfx.Option{
			{Name: "palette", Default: waterPal},
			{Name: "seed", Default: pixelfx.Num(4)},
		},
	},
	New: newBubbles,
}

Bubbles streams bubbles up from a vent of pebbles, wobbling and swelling as they rise, flaring as they cross shafts of light from the surface, then doming up and popping there. It is registered as "water/bubbles".

View Source
var Drip = &pixelfx.Effect{
	Meta: pixelfx.Meta{
		Name:     "Drip",
		Desc:     "A bead swells under a wet stone tip and catches the light, pinches off, falls stretched by its speed and plinks into a puddle with a crown, a ring and a tiny rebound.",
		Tags:     []string{"water", "drip", "drop", "puddle", "cave", "ambient", "loop"},
		Size:     [2]int{72, 88},
		Origin:   [2]int{36, 78},
		Duration: dripDuration,
		Loop:     true,
		FPS:      30,
		BG:       "ground",
		Options: []pixelfx.Option{
			{Name: "palette", Default: waterPal},
			{Name: "height", Default: pixelfx.Num(62)},
			{Name: "source", Default: pixelfx.Bool(true)},
			{Name: "seed", Default: pixelfx.Num(1)},
		},
	},
	New: newDrip,
}

Drip is a bead swelling under a wet stone tip, pinching off, falling stretched by its speed and plinking into a puddle with a crown, a ring and a tiny rebound. It is registered as "water/drip".

View Source
var Fountain = &pixelfx.Effect{
	Meta: pixelfx.Meta{
		Name:     "Fountain",
		Desc:     "A stone basin; a jet rises from its spout and blooms into glassy arcs that break into beads, fall back and plink into the water with rings.",
		Tags:     []string{"water", "fountain", "jet", "basin", "prop", "ambient", "loop"},
		Size:     [2]int{120, 104},
		Origin:   [2]int{60, 96},
		Duration: fountainDuration,
		Loop:     true,
		FPS:      30,
		BG:       "ground",
		Options: []pixelfx.Option{
			{Name: "palette", Default: waterPal},
			{Name: "seed", Default: pixelfx.Num(3)},
		},
	},
	New: newFountain,
}

Fountain is a stone basin whose jet rises from its spout and blooms into glassy arcs that break into beads, fall back and plink into the water with rings. It is registered as "water/fountain".

View Source
var Geyser = &pixelfx.Effect{
	Meta: pixelfx.Meta{
		Name:     "Geyser",
		Desc:     "A pool heaves and burbles faster and faster, then blasts a white column of water skyward with a churning foam head; it rains back down in drops and steam, slumps and sputters out.",
		Tags:     []string{"water", "geyser", "eruption", "steam", "column", "nature", "one-shot"},
		Size:     [2]int{184, 168},
		Origin:   [2]int{92, 146},
		Duration: 5,
		FPS:      30,
		BG:       "ground",
		Options: []pixelfx.Option{
			{Name: "palette", Default: waterPal},
			{Name: "height", Default: pixelfx.Num(100)},
			{Name: "seed", Default: pixelfx.Num(4)},
		},
	},
	New: newGeyser,
}

Geyser is a pool that heaves and burbles faster and faster, then blasts a white column of water skyward with a churning foam head; it rains back down in drops and steam, slumps and sputters out. It is registered as "water/geyser".

View Source
var RainSplash = &pixelfx.Effect{
	Meta: pixelfx.Meta{
		Name:     "Rain splash",
		Desc:     "A low close-up on one puddle in the rain: big drops land in crowns that throw beads and a rebound jet, rings spread and interfere, a lamp's reflection wobbles on the water.",
		Tags:     []string{"water", "rain", "splash", "puddle", "close-up", "ambient", "loop"},
		Size:     [2]int{176, 80},
		Origin:   [2]int{88, 50},
		Duration: rainSplashDuration,
		Loop:     true,
		FPS:      30,
		BG:       "ground",
		Options: []pixelfx.Option{
			{Name: "palette", Default: waterPal},
			{Name: "seed", Default: pixelfx.Num(9)},
		},
	},
	New: newRainSplash,
}

RainSplash is a low close-up on one puddle in the rain: big drops land in crowns that throw beads and a rebound jet, rings spread and interfere, a lamp's reflection wobbles on the water. It is registered as "water/rain-splash".

View Source
var Ripples = &pixelfx.Effect{
	Meta: pixelfx.Meta{
		Name:     "Ripples",
		Desc:     "A drop plinks on still dark water and rings spread out across it at a low angle: the swell of each ring catches the light, crests glint, and they fade into the calm.",
		Tags:     []string{"water", "ripples", "rings", "surface", "pond", "ambient", "loop"},
		Size:     [2]int{136, 52},
		Origin:   [2]int{68, 30},
		Duration: ripplesDuration,
		Loop:     true,
		FPS:      30,
		BG:       "ground",
		Options: []pixelfx.Option{
			{Name: "palette", Default: waterPal},
			{Name: "seed", Default: pixelfx.Num(2)},
		},
	},
	New: newRipplesEffect,
}

Ripples drops plinks on still dark water and spreads rings across it at a low angle: the swell of each ring catches the light, crests glint, and they fade into the calm. It is registered as "water/ripples".

View Source
var Splash = &pixelfx.Effect{
	Meta: pixelfx.Meta{
		Name:     "Splash",
		Desc:     "A stone drops into still water: a white hit, a crown that tears into droplets arcing out to plink down with rings, a jet that bounces back, foam and drifting mist.",
		Tags:     []string{"water", "splash", "impact", "drop", "liquid", "one-shot"},
		Size:     [2]int{176, 100},
		Origin:   [2]int{88, 78},
		Duration: 2.5,
		FPS:      30,
		BG:       "ground",
		Options: []pixelfx.Option{
			{Name: "palette", Default: waterPal},
			{Name: "stone", Default: pixelfx.Bool(true)},
			{Name: "seed", Default: pixelfx.Num(3)},
		},
	},
	New: newSplash,
}

Splash drops a stone into still water: a white hit, a crown that tears into droplets arcing out to plink down with rings, a jet that bounces back, foam and drifting mist. It is registered as "water/splash".

View Source
var WaterJet = &pixelfx.Effect{
	Meta: pixelfx.Meta{
		Name:     "Water jet",
		Desc:     "A pressurised stream blasts right: a tight glassy rod with surges running down it that swells, roughens, bends under its weight and breaks into chunks, spray and mist.",
		Tags:     []string{"water", "jet", "stream", "hose", "spray", "directional", "loop"},
		Size:     [2]int{188, 80},
		Origin:   [2]int{14, 32},
		Duration: waterJetDuration,
		Loop:     true,
		FPS:      30,
		BG:       "dark",
		Options: []pixelfx.Option{
			{Name: "palette", Default: waterPal},
			{Name: "length", Default: pixelfx.Num(118)},
			{Name: "seed", Default: pixelfx.Num(3)},
		},
	},
	New: newWaterJet,
}

WaterJet blasts a pressurised stream right: a tight glassy rod with surges running down it that swells, roughens, bends under its weight and breaks into chunks, spray and mist. It is registered as "water/water-jet".

View Source
var WaterOrb = &pixelfx.Effect{
	Meta: pixelfx.Meta{
		Name:     "Water orb",
		Desc:     "A sphere of water floats and wobbles: a current circles inside it, the floor shows upside down through it, it shines, light gathers on the floor under it, and drips fall and plink.",
		Tags:     []string{"water", "orb", "sphere", "magic", "float", "ambient", "loop"},
		Size:     [2]int{100, 108},
		Origin:   [2]int{50, 100},
		Duration: waterOrbDuration,
		Loop:     true,
		FPS:      30,
		BG:       "ground",
		Options: []pixelfx.Option{
			{Name: "palette", Default: waterPal},
			{Name: "radius", Default: pixelfx.Num(19)},
			{Name: "seed", Default: pixelfx.Num(2)},
		},
	},
	New: newWaterOrb,
}

WaterOrb is a floating, wobbling sphere of water: a current circles inside it, light gathers on the floor under it, and drips fall and plink. It is registered as "water/water-orb".

View Source
var Waterfall = &pixelfx.Effect{
	Meta: pixelfx.Meta{
		Name:     "Waterfall",
		Desc:     "A river pours from a notch in a rock outcrop: a white curl, a deep sheet that splits into strands, churning foam, spray, drifting mist and rings on a dark pool.",
		Tags:     []string{"water", "waterfall", "cascade", "foam", "mist", "ambient", "loop"},
		Size:     [2]int{144, 136},
		Origin:   [2]int{72, 118},
		Duration: waterfallDuration,
		Loop:     true,
		FPS:      30,
		BG:       "ground",
		Options: []pixelfx.Option{
			{Name: "palette", Default: waterPal},
			{Name: "height", Default: pixelfx.Num(92)},
			{Name: "width", Default: pixelfx.Num(13)},
			{Name: "ledge", Default: pixelfx.Bool(true)},
			{Name: "seed", Default: pixelfx.Num(5)},
		},
	},
	New: newWaterfall,
}

Waterfall pours a river from a notch in a rock outcrop: a white curl, a deep sheet that splits into strands, churning foam, spray, drifting mist and rings on a dark pool. It is registered as "water/waterfall".

View Source
var WaveCrash = &pixelfx.Effect{
	Meta: pixelfx.Meta{
		Name:     "Wave crash",
		Desc:     "A swell rolls in and steepens, its lip throws forward and curls over a dark barrel, then crashes into a burst of white foam and spray that surges on and fades to lace.",
		Tags:     []string{"water", "wave", "crash", "surf", "foam", "spray", "one-shot"},
		Size:     [2]int{224, 104},
		Origin:   [2]int{112, 86},
		Duration: waveCrashDuration,
		FPS:      30,
		BG:       "ground",
		Options: []pixelfx.Option{
			{Name: "palette", Default: waterPal},
			{Name: "seed", Default: pixelfx.Num(6)},
		},
	},
	New: newWaveCrash,
}

WaveCrash rolls in a swell that steepens, throws its lip forward over a dark barrel, then crashes into a burst of white foam and spray that surges on and fades to lace. It is registered as "water/wave-crash".

View Source
var Whirlpool = &pixelfx.Effect{
	Meta: pixelfx.Meta{
		Name:     "Whirlpool",
		Desc:     "Seen from above, dark water winds into a vortex: foam arms spiral in, darkening as they're drawn down into a deep eye with a lit far rim, flecks of foam circling in after them.",
		Tags:     []string{"water", "whirlpool", "vortex", "maelstrom", "swirl", "top-down", "loop"},
		Size:     [2]int{128, 84},
		Origin:   [2]int{64, 42},
		Duration: whirlpoolDuration,
		Loop:     true,
		FPS:      30,
		BG:       "dark",
		Options: []pixelfx.Option{
			{Name: "palette", Default: waterPal},
			{Name: "seed", Default: pixelfx.Num(5)},
		},
	},
	New: newWhirlpool,
}

Whirlpool winds dark water into a top-down vortex: foam arms spiral in, darkening as they are drawn down into a deep eye with a lit far rim, flecks of foam circling in after them. It is registered as "water/whirlpool".

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL