fire

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2026 License: Apache-2.0, MIT Imports: 3 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 fire is pixelfx's fire category: brazier, campfire, candle, fire breath, fire ring, fire tornado, fireball, flame pillar, flamethrower, meteor, spirit flame and torch, each a pixelfx.Effect registered as "fire/<name>" when the package is imported.

Index

Constants

This section is empty.

Variables

View Source
var Brazier = &pixelfx.Effect{
	Meta: pixelfx.Meta{
		Name:     "Brazier",
		Desc:     "An iron bowl on a tripod heaped with glowing coals and a big roaring fire, sparks and embers streaming up off it, light on the iron and the floor.",
		Tags:     []string{"fire", "brazier", "prop", "light", "sparks", "ambient", "loop"},
		Size:     [2]int{112, 148},
		Origin:   [2]int{56, 136},
		Duration: brazierDuration,
		Loop:     true,
		FPS:      30,
		BG:       "ground",
		Options: []pixelfx.Option{
			{Name: "palette", Default: pixelfx.Palette("#4a1712", "#8a1f17", "#c9281f", "#f2561d", "#ff8a2a", "#ffc23d", "#ffe26b", "#fff3a6", "#ffffff")},
			{Name: "iron", Default: pixelfx.Palette("#0b0910", "#1c1924", "#302c3a", "#4c4658", "#78708a")},
			{Name: "seed", Default: pixelfx.Num(8)},
		},
	},
	New: newBrazier,
}

Brazier is an iron bowl on a tripod heaped with glowing coals and a big roaring fire, sparks and embers streaming up off it, light on the iron and the floor. It is registered as "fire/brazier".

View Source
var Campfire = &pixelfx.Effect{
	Meta: pixelfx.Meta{
		Name:     "Campfire",
		Desc:     "Crossed logs on a bed of coals and a lively fire: tongues that lick and leap, popping sparks, embers drifting up, smoke curling off, a warm pool of light.",
		Tags:     []string{"fire", "campfire", "prop", "light", "smoke", "ambient", "loop"},
		Size:     [2]int{128, 128},
		Origin:   [2]int{64, 112},
		Duration: campfireDuration,
		Loop:     true,
		FPS:      30,
		BG:       "ground",
		Options: []pixelfx.Option{
			{Name: "palette", Default: pixelfx.Palette("#4a1712", "#8a1f17", "#c9281f", "#f2561d", "#ff8a2a", "#ffc23d", "#ffe26b", "#fff3a6", "#ffffff")},
			{Name: "wood", Default: pixelfx.Palette("#0e080a", "#24130f", "#3b2216", "#5a3520", "#8a5a34", "#b9884f")},
			{Name: "height", Default: pixelfx.Num(22)},
			{Name: "seed", Default: pixelfx.Num(3)},
		},
	},
	New: newCampfire,
}

Campfire is crossed logs on a bed of coals and a lively fire: tongues that lick and leap, popping sparks, embers drifting up, smoke curling off, a warm pool of light. It is registered as "fire/campfire".

View Source
var Candle = &pixelfx.Effect{
	Meta: pixelfx.Meta{
		Name:     "Candle",
		Desc:     "A wax candle in a brass dish: a calm flame with a blue root that sways and stretches, a halo of light, motes drifting in it, a bead of wax running down a drip.",
		Tags:     []string{"fire", "candle", "prop", "light", "calm", "ambient", "loop"},
		Size:     [2]int{56, 76},
		Origin:   [2]int{28, 64},
		Duration: candleDuration,
		Loop:     true,
		FPS:      30,
		BG:       "ground",
		Options: []pixelfx.Option{
			{Name: "palette", Default: pixelfx.Palette("#4a1712", "#8a1f17", "#c9281f", "#f2561d", "#ff8a2a", "#ffc23d", "#ffe26b", "#fff3a6", "#ffffff")},
			{Name: "root", Default: pixelfx.Palette("#1b2a8a", "#3a62e0", "#7fb4ff")},
			{Name: "wax", Default: pixelfx.Palette("#2e201e", "#5e4436", "#8e6e58", "#b8957a", "#d8b896", "#f0dcc0")},
			{Name: "brass", Default: pixelfx.Palette("#2a1a10", "#6a4a1e", "#b4862e", "#e8c060", "#fff0b0")},
			{Name: "seed", Default: pixelfx.Num(2)},
		},
	},
	New: newCandle,
}

Candle is a wax candle in a brass dish: a calm flame with a blue root that sways and stretches, a halo of light, motes drifting in it, a bead of wax running down a drip. It is registered as "fire/candle".

View Source
var FireBreath = &pixelfx.Effect{
	Meta: pixelfx.Meta{
		Name:     "Fire breath",
		Desc:     "A roaring cone of fire streaming right from the mouth: white-hot at the lips, billowing out and cooling to red and smoke at its edges, sparks thrown out ahead.",
		Tags:     []string{"fire", "breath", "dragon", "stream", "cone", "directional", "loop"},
		Size:     [2]int{160, 116},
		Origin:   [2]int{12, 72},
		Duration: breathDuration,
		Loop:     true,
		FPS:      30,
		BG:       "dark",
		Options: []pixelfx.Option{
			{Name: "palette", Default: pixelfx.Palette("#4a1712", "#8a1f17", "#c9281f", "#f2561d", "#ff8a2a", "#ffc23d", "#ffe26b", "#fff3a6", "#ffffff")},
			{Name: "spread", Default: pixelfx.Num(0.24)},
			{Name: "speed", Default: pixelfx.Num(320)},
			{Name: "seed", Default: pixelfx.Num(6)},
		},
	},
	New: newFireBreath,
}

FireBreath is a roaring cone of fire streaming right from the mouth: white-hot at the lips, billowing out and cooling to red and smoke at its edges, sparks thrown out ahead. It is registered as "fire/fire-breath".

View Source
var FireRing = &pixelfx.Effect{
	Meta: pixelfx.Meta{
		Name:     "Fire ring",
		Desc:     "A white flash at the feet, then flames race outward along the floor in a ring, flaring as the front passes and burning down behind it over a smouldering scorch.",
		Tags:     []string{"fire", "ring", "nova", "aoe", "spell", "ground", "one-shot"},
		Size:     [2]int{224, 128},
		Origin:   [2]int{112, 92},
		Duration: ringDuration,
		FPS:      30,
		BG:       "ground",
		Actor:    2,
		Options: []pixelfx.Option{
			{Name: "palette", Default: pixelfx.Palette("#4a1712", "#8a1f17", "#c9281f", "#f2561d", "#ff8a2a", "#ffc23d", "#ffe26b", "#fff3a6", "#ffffff")},
			{Name: "reach", Default: pixelfx.Num(92)},
			{Name: "seed", Default: pixelfx.Num(6)},
		},
	},
	Act: &pixelfx.Act{
		Targets: []float64{70},
		Poses: []pixelfx.Key{
			{T: -0.32, Pose: pixelfx.Ready},
			{T: 0.02, Pose: ringHigh},
			{T: 0.27, Pose: ringHigh.With(pixelfx.Y.Is(-1))},
			{T: 0.32, Pose: ringSlam, How: "snap"},
			{T: 0.85, Pose: ringSlam.With(pixelfx.Crouch.Is(7))},
			{T: 1.5, Pose: ringEase},
			{T: 2.4, Pose: pixelfx.Ready},
			{T: 3.9, Pose: pixelfx.Ready},
		},
		Hits: []pixelfx.Hit{
			{T: 0.32, Stop: 0.1, Shake: 0.28, Amp: pixelfx.Val(3), NoTarget: true},
			{T: 0.6, Push: pixelfx.Val(1.2), Straw: pixelfx.Val(10), Y: pixelfx.Val(-8), Skin: "char"},
			{T: 3.5, Push: pixelfx.Val(0), Straw: pixelfx.Val(0), Flash: pixelfx.Val(0), Skin: pixelfx.SkinNone},
		},
		Dust: []pixelfx.DustKick{{T: 0.32, X: 10, N: 6, Dir: 1}, {T: 0.32, X: -10, N: 6, Dir: -1}},
	},
	New: newFireRing,
}

FireRing is a white flash at the feet, then flames race outward along the floor in a ring, flaring as the front passes and burning down behind it over a smouldering scorch. A character acts it out, slamming its hands down. It is registered as "fire/fire-ring".

View Source
var FireTornado = &pixelfx.Effect{
	Meta: pixelfx.Meta{
		Name:     "Fire tornado",
		Desc:     "A spinning funnel of fire: spiral bands turning round it, licks flung off its sides, a ring of flame whirling at its foot, embers orbiting it in and out of view.",
		Tags:     []string{"fire", "tornado", "vortex", "spell", "aoe", "loop"},
		Size:     [2]int{120, 152},
		Origin:   [2]int{60, 136},
		Duration: tornadoDuration,
		Loop:     true,
		FPS:      30,
		BG:       "ground",
		Options: []pixelfx.Option{
			{Name: "palette", Default: pixelfx.Palette("#4a1712", "#8a1f17", "#c9281f", "#f2561d", "#ff8a2a", "#ffc23d", "#ffe26b", "#fff3a6", "#ffffff")},
			{Name: "height", Default: pixelfx.Num(80)},
			{Name: "seed", Default: pixelfx.Num(4)},
		},
	},
	New: newFireTornado,
}

FireTornado is a spinning funnel of fire: spiral bands turning round it, licks flung off its sides, a ring of flame whirling at its foot, embers orbiting it in and out of view. It is registered as "fire/fire-tornado".

View Source
var Fireball = &pixelfx.Effect{
	Meta: pixelfx.Meta{
		Name:     "Fireball",
		Desc:     "A fireball flying right: a churning white-hot head with a corona of flame, a long torn tail of flame puffs cooling into smoke, embers shed behind.",
		Tags:     []string{"fire", "fireball", "projectile", "magic", "directional", "loop"},
		Size:     [2]int{136, 56},
		Origin:   [2]int{112, 28},
		Duration: fireballDuration,
		Loop:     true,
		FPS:      30,
		BG:       "dark",
		Options: []pixelfx.Option{
			{Name: "palette", Default: pixelfx.Palette("#4a1712", "#8a1f17", "#c9281f", "#f2561d", "#ff8a2a", "#ffc23d", "#ffe26b", "#fff3a6", "#ffffff")},
			{Name: "radius", Default: pixelfx.Num(5)},
			{Name: "speed", Default: pixelfx.Num(120)},
			{Name: "seed", Default: pixelfx.Num(5)},
		},
	},
	New: newFireball,
}

Fireball is a fireball flying right: a churning white-hot head with a corona of flame, a long torn tail of flame puffs cooling into smoke, embers shed behind. It is registered as "fire/fireball".

View Source
var FlamePillar = &pixelfx.Effect{
	Meta: pixelfx.Meta{
		Name:     "Flame pillar",
		Desc:     "The floor cracks and glows, a column of fire erupts white-hot and roars, spewing embers and shedding flame, then collapses into rolling smoke.",
		Tags:     []string{"fire", "pillar", "eruption", "spell", "ground", "one-shot"},
		Size:     [2]int{184, 256},
		Origin:   [2]int{92, 232},
		Duration: pillarDuration,
		FPS:      30,
		BG:       "ground",
		Options: []pixelfx.Option{
			{Name: "palette", Default: pixelfx.Palette("#4a1712", "#8a1f17", "#c9281f", "#f2561d", "#ff8a2a", "#ffc23d", "#ffe26b", "#fff3a6", "#ffffff")},
			{Name: "stone", Default: pixelfx.Color("#4a3f69")},
			{Name: "height", Default: pixelfx.Num(140)},
			{Name: "seed", Default: pixelfx.Num(5)},
		},
	},
	New: newFlamePillar,
}

FlamePillar is the floor cracking and glowing, then a column of fire erupting white-hot and roaring, spewing embers and shedding flame, then collapsing into rolling smoke. It is registered as "fire/flame-pillar".

View Source
var Flamethrower = &pixelfx.Effect{
	Meta: pixelfx.Meta{
		Name:     "Flamethrower",
		Desc:     "A pressurised jet shooting right: a blue pilot at the nozzle, a tight stream with surges racing down it, a sputter, burning drops falling off, a tip that curls up into smoke.",
		Tags:     []string{"fire", "flamethrower", "stream", "weapon", "directional", "loop"},
		Size:     [2]int{184, 104},
		Origin:   [2]int{30, 60},
		Duration: throwerDuration,
		Loop:     true,
		FPS:      30,
		BG:       "dark",
		Options: []pixelfx.Option{
			{Name: "palette", Default: pixelfx.Palette("#4a1712", "#8a1f17", "#c9281f", "#f2561d", "#ff8a2a", "#ffc23d", "#ffe26b", "#fff3a6", "#ffffff")},
			{Name: "pilot", Default: pixelfx.Palette("#1b2a8a", "#3a62e0", "#a8d4ff")},
			{Name: "reach", Default: pixelfx.Num(112)},
			{Name: "speed", Default: pixelfx.Num(280)},
			{Name: "seed", Default: pixelfx.Num(3)},
		},
	},
	New: newFlamethrower,
}

Flamethrower is a pressurised jet shooting right: a blue pilot at the nozzle, a tight stream with surges racing down it, a sputter, burning drops falling off, a tip that curls up into smoke. It is registered as "fire/flamethrower".

View Source
var Meteor = &pixelfx.Effect{
	Meta: pixelfx.Meta{
		Name:     "Meteor",
		Desc:     "A burning rock streaks in from the upper left in a comet of fire and smashes into the floor: a white flash, a fireball, rocks and brands thrown, a glowing crater that cools.",
		Tags:     []string{"fire", "meteor", "impact", "explosion", "spell", "debris", "one-shot"},
		Size:     [2]int{272, 232},
		Origin:   [2]int{150, 208},
		Duration: meteorDuration,
		FPS:      30,
		BG:       "ground",
		Options: []pixelfx.Option{
			{Name: "palette", Default: pixelfx.Palette("#4a1712", "#8a1f17", "#c9281f", "#f2561d", "#ff8a2a", "#ffc23d", "#ffe26b", "#fff3a6", "#ffffff")},
			{Name: "stone", Default: pixelfx.Color("#4a3f69")},
			{Name: "rock", Default: pixelfx.Palette("#120e16", "#2a2230", "#463a4a", "#6a5a66")},
			{Name: "seed", Default: pixelfx.Num(9)},
		},
	},
	New: newMeteor,
}

Meteor is a burning rock streaking in from the upper left in a comet of fire and smashing into the floor: a white flash, a fireball, rocks and brands thrown, a glowing crater that cools. It is registered as "fire/meteor".

View Source
var SpiritFlame = &pixelfx.Effect{
	Meta: pixelfx.Meta{
		Name:     "Spirit flame",
		Desc:     "A cold blue-teal ghost fire floating in the air: a bright rim round a hollow dark heart, a wave climbing its wispy tail, curls breaking off, cold sparks rising.",
		Tags:     []string{"fire", "spirit", "ghost", "magic", "cold", "ambient", "loop"},
		Size:     [2]int{80, 124},
		Origin:   [2]int{40, 94},
		Duration: spiritDuration,
		Loop:     true,
		FPS:      30,
		BG:       "dark",
		Options: []pixelfx.Option{
			{Name: "palette", Default: pixelfx.Palette("#040a16", "#08203a", "#0b3a52", "#0f5e6e", "#16908e", "#2cc4b4", "#7ef0dc", "#c8fff2", "#ffffff")},
			{Name: "seed", Default: pixelfx.Num(7)},
		},
	},
	New: newSpiritFlame,
}

SpiritFlame is a cold blue-teal ghost fire floating in the air: a bright rim round a hollow dark heart, a wave climbing its wispy tail, curls breaking off, cold sparks rising. It is registered as "fire/spirit-flame".

View Source
var Torch = &pixelfx.Effect{
	Meta: pixelfx.Meta{
		Name:     "Torch",
		Desc:     "A wall torch on an iron bracket: a licking flame leaping off a pitch-soaked wrap, licks and puffs torn off its tips, smoke, embers, a flickering light on the wall.",
		Tags:     []string{"fire", "torch", "prop", "light", "wall", "dungeon", "loop"},
		Size:     [2]int{72, 120},
		Origin:   [2]int{36, 94},
		Duration: torchDuration,
		Loop:     true,
		FPS:      30,
		BG:       "dark",
		Options: []pixelfx.Option{
			{Name: "palette", Default: pixelfx.Palette("#4a1712", "#8a1f17", "#c9281f", "#f2561d", "#ff8a2a", "#ffc23d", "#ffe26b", "#fff3a6", "#ffffff")},
			{Name: "wood", Default: pixelfx.Palette("#0e080a", "#24130f", "#3b2216", "#5a3520", "#8a5a34", "#b9884f")},
			{Name: "iron", Default: pixelfx.Palette("#0d0b12", "#1e1b26", "#363242", "#5b5566", "#8a8396")},
			{Name: "seed", Default: pixelfx.Num(4)},
		},
	},
	New: newTorch,
}

Torch is a wall torch on an iron bracket: a licking flame leaping off a pitch-soaked wrap, licks and puffs torn off its tips, smoke, embers, a flickering light on the wall. It is registered as "fire/torch".

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