Documentation
¶
Overview ¶
Package critters is pixelfx's critters category: bat, bird, butterfly, eyeball, fish school, flying skull, frog, ghost, jellyfish, slime, snake and wisp, each a pixelfx.Effect registered as "critters/<name>" when the package is imported.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Bat = &pixelfx.Effect{ Meta: pixelfx.Meta{ Name: "Bat", Desc: "A bat flaps in four snappy wing frames along a figure-eight, its body lifting on each downbeat, moonlight on its wing bones, red eyes glowing and glinting.", Tags: []string{"critter", "bat", "night", "flying", "spooky", "loop"}, Size: [2]int{112, 80}, Origin: [2]int{56, 40}, Duration: 2.4, Loop: true, FPS: 30, BG: "sky", Options: []pixelfx.Option{ {Name: "palette", Default: pixelfx.Palette("#0c0912", "#1f1629", "#382645", "#5b3f66", "#866089", "#b88fb0", "#e8cfe0")}, {Name: "eyes", Default: pixelfx.Palette("#8a1020", "#ff3b30", "#ffb04a", "#fff0c0")}, {Name: "seed", Default: pixelfx.Num(1)}, }, }, New: newBat, }
Bat is a bat flapping in four snappy wing frames along a figure-eight, its body lifting on each downbeat, moonlight on its wing bones, red eyes glowing and glinting. It is registered as "critters/bat".
var Bird = &pixelfx.Effect{ Meta: pixelfx.Meta{ Name: "Bird", Desc: "A songbird flies in place: bursts of wingbeats that lift its body on each downstroke, a glide on spread wings, its tail fanning, a loose feather drifting away.", Tags: []string{"critter", "bird", "flying", "animal", "loop"}, Size: [2]int{112, 80}, Origin: [2]int{56, 40}, Duration: 2.4, Loop: true, FPS: 30, BG: "sky", Options: []pixelfx.Option{ {Name: "palette", Default: pixelfx.Palette("#0a0e1e", "#18244a", "#24407a", "#3466aa", "#5a94d4", "#9cc8f0", "#eaf6ff")}, {Name: "breast", Default: pixelfx.Palette("#4a1a0e", "#a8441c", "#e8783a", "#ffb070")}, {Name: "seed", Default: pixelfx.Num(1)}, }, }, New: newBird, }
Bird is a songbird flying in place: bursts of wingbeats that lift its body on each downstroke, a glide on spread wings, its tail fanning, a loose feather drifting away. It is registered as "critters/bird".
var Butterfly = &pixelfx.Effect{ Meta: pixelfx.Meta{ Name: "Butterfly", Desc: "An iridescent butterfly wanders a loop in bursts of quick wingbeats and open-winged glides, its veined, spotted wings shedding a twinkling trail of glowing dust.", Tags: []string{"critter", "butterfly", "insect", "flying", "magic", "glow", "loop"}, Size: [2]int{128, 88}, Origin: [2]int{64, 44}, Duration: 3.2, Loop: true, FPS: 30, BG: "sky", Options: []pixelfx.Option{ {Name: "palette", Default: pixelfx.Palette("#0b0f24", "#16224f", "#1f3f8a", "#2f74c8", "#4fb4f0", "#a0e6ff", "#ffffff")}, {Name: "spots", Default: pixelfx.Palette("#3a1a08", "#c8641a", "#ffb43c", "#fff0b0")}, {Name: "seed", Default: pixelfx.Num(1)}, }, }, New: newButterfly, }
Butterfly is an iridescent butterfly wandering a loop in bursts of quick wingbeats and open-winged glides, its veined, spotted wings shedding a twinkling trail of glowing dust. It is registered as "critters/butterfly".
var Eyeball = &pixelfx.Effect{ Meta: pixelfx.Meta{ Name: "Eyeball", Desc: "A bloodshot eyeball floats in its fleshy lids: its glowing iris snaps from one look to the next, it blinks, and its nerve sways behind it as it bobs.", Tags: []string{"critter", "eyeball", "eye", "monster", "spooky", "float", "loop"}, Size: [2]int{96, 108}, Origin: [2]int{48, 100}, Duration: 3.2, Loop: true, FPS: 30, BG: "ground", Options: []pixelfx.Option{ {Name: "palette", Default: pixelfx.Palette("#2a1420", "#6a3040", "#b07078", "#dcbcb4", "#f4e9de", "#ffffff")}, {Name: "flesh", Default: pixelfx.Palette("#1e0c16", "#4a1a2c", "#7c2c40", "#b04a58", "#e07a80")}, {Name: "iris", Default: pixelfx.Palette("#0c2a14", "#1f6a2a", "#3fae3a", "#9be05a", "#e8ffb0")}, {Name: "hover", Default: pixelfx.Num(48)}, {Name: "seed", Default: pixelfx.Num(1)}, }, }, New: newEyeball, }
Eyeball is a bloodshot eyeball floating in its fleshy lids: its glowing iris snaps from one look to the next, it blinks, and its nerve sways behind it as it bobs. It is registered as "critters/eyeball".
var FishSchool = &pixelfx.Effect{ Meta: pixelfx.Meta{ Name: "Fish school", Desc: "A school of fish holds station in two depth rows: bodies wag into swinging tails, one darts ahead now and then, bubbles rise and caustic light ripples over them.", Tags: []string{"critter", "fish", "school", "sea", "underwater", "swim", "loop"}, Size: [2]int{136, 80}, Origin: [2]int{68, 40}, Duration: 4.8, Loop: true, FPS: 30, BG: "dark", Options: []pixelfx.Option{ {Name: "palette", Default: pixelfx.Palette("#0a1a2a", "#123552", "#1d5a7e", "#2f8aa8", "#62bccc", "#bfe8e6", "#f4fff8")}, {Name: "stripe", Default: pixelfx.Palette("#5a1e14", "#d8582a", "#ffa04a")}, {Name: "seed", Default: pixelfx.Num(1)}, }, }, New: newFishSchool, }
FishSchool is a school of fish holding station in two depth rows: bodies wag into swinging tails, one darts ahead now and then, bubbles rise and caustic light ripples over them. It is registered as "critters/fish-school".
var FlyingSkull = &pixelfx.Effect{ Meta: pixelfx.Meta{ Name: "Flying skull", Desc: "A cracked bone skull bobs in the air, jaw chattering, eyes burning, a fire roaring off its crown that sheds flame puffs, embers and smoke and throws warm light.", Tags: []string{"critter", "skull", "undead", "fire", "flying", "monster", "loop"}, Size: [2]int{96, 132}, Origin: [2]int{48, 120}, Duration: 2.4, Loop: true, FPS: 30, BG: "ground", Options: []pixelfx.Option{ {Name: "palette", Default: pixelfx.Palette("#4a1712", "#8a1f17", "#c9281f", "#f2561d", "#ff8a2a", "#ffc23d", "#ffe26b", "#fff3a6", "#ffffff")}, {Name: "bone", Default: pixelfx.Palette("#1a1114", "#3e2b2a", "#6b5144", "#9e8467", "#cdb892", "#efe2bf", "#fffaea")}, {Name: "hover", Default: pixelfx.Num(40)}, {Name: "floor", Default: pixelfx.Bool(true)}, {Name: "seed", Default: pixelfx.Num(1)}, }, }, New: newFlyingSkull, }
FlyingSkull is a cracked bone skull bobbing in the air, jaw chattering, eyes burning, a fire roaring off its crown that sheds flame puffs, embers and smoke and throws warm light. It is registered as "critters/flying-skull".
var Frog = &pixelfx.Effect{ Meta: pixelfx.Meta{ Name: "Frog", Desc: "A frog puffs its throat, blinks, crouches and leaps to snap a buzzing fly out of the air, then lands with a squash and a puff of dust, gulps and settles.", Tags: []string{"critter", "frog", "animal", "hop", "ground", "loop"}, Size: [2]int{112, 88}, Origin: [2]int{56, 80}, Duration: 2.6, Loop: true, FPS: 30, BG: "ground", Options: []pixelfx.Option{ {Name: "palette", Default: pixelfx.Palette("#0a160c", "#173a18", "#256024", "#3a8a2e", "#62b440", "#a8e070", "#e8ffc0")}, {Name: "belly", Default: pixelfx.Palette("#5e5a24", "#bdb45a", "#efe9a8")}, {Name: "seed", Default: pixelfx.Num(1)}, }, }, New: newFrog, }
Frog is a frog puffing its throat, blinking, crouching and leaping to snap a buzzing fly out of the air, then landing with a squash and a puff of dust, gulping and settling. It is registered as "critters/frog".
var Ghost = &pixelfx.Effect{ Meta: pixelfx.Meta{ Name: "Ghost", Desc: "A sheet ghost bobs over the floor: its scalloped hem ripples and trails its drift, little arms flutter, it glances about and blinks, motes trickle off its hem.", Tags: []string{"critter", "ghost", "spirit", "undead", "spooky", "float", "loop"}, Size: [2]int{96, 100}, Origin: [2]int{48, 90}, Duration: 2.4, Loop: true, FPS: 30, BG: "ground", Options: []pixelfx.Option{ {Name: "palette", Default: pixelfx.Palette("#10142a", "#232c52", "#3e4f86", "#6b84bb", "#a3b8e2", "#d8e4ff", "#ffffff")}, {Name: "hover", Default: pixelfx.Num(14)}, {Name: "seed", Default: pixelfx.Num(1)}, }, }, New: newGhost, }
Ghost is a sheet ghost bobbing over the floor: its scalloped hem ripples and trails its drift, little arms flutter, it glances about and blinks, motes trickle off its hem. It is registered as "critters/ghost".
var Jellyfish = &pixelfx.Effect{ Meta: pixelfx.Meta{ Name: "Jellyfish", Desc: "A see-through jellyfish pulses: its bell squeezes to shove it up and relaxes as it sinks, frilled arms and long tentacles trailing, a glow inside, bubbles drifting by.", Tags: []string{"critter", "jellyfish", "sea", "underwater", "glow", "swim", "loop"}, Size: [2]int{96, 120}, Origin: [2]int{48, 38}, Duration: 3.2, Loop: true, FPS: 30, BG: "dark", Options: []pixelfx.Option{ {Name: "palette", Default: pixelfx.Palette("#140b2b", "#2a1650", "#4b2386", "#7a3cb8", "#b066e0", "#e09cf5", "#ffd6ff", "#ffffff")}, {Name: "glow", Default: pixelfx.Palette("#0b3550", "#1f7fa8", "#4fd2e8", "#b8fbff")}, {Name: "seed", Default: pixelfx.Num(1)}, }, }, New: newJellyfish, }
Jellyfish is a see-through jellyfish pulsing: its bell squeezes to shove it up and relaxes as it sinks, frilled arms and long tentacles trailing, a glow inside, bubbles drifting by. It is registered as "critters/jellyfish".
var Slime = &pixelfx.Effect{ Meta: pixelfx.Meta{ Name: "Slime", Desc: "A glossy slime hops in place: it squashes to wind up, stretches into the jump, rounds out in the air, splats down flinging droplets that creep back, then wobbles and blinks.", Tags: []string{"critter", "slime", "monster", "hop", "goo", "loop"}, Size: [2]int{112, 88}, Origin: [2]int{56, 72}, Duration: 1.8, Loop: true, FPS: 30, BG: "ground", Options: []pixelfx.Option{ {Name: "palette", Default: pixelfx.Palette("#061412", "#0b2f2b", "#12594a", "#1f8f4f", "#47c752", "#a6f06a", "#f0ffd2")}, {Name: "hop", Default: pixelfx.Num(24)}, {Name: "seed", Default: pixelfx.Num(1)}, }, }, New: newSlime, }
Slime is a glossy slime hopping in place: it squashes to wind up, stretches into the jump, rounds out in the air, splats down flinging droplets that creep back, then wobbles and blinks. It is registered as "critters/slime".
var Snake = &pixelfx.Effect{ Meta: pixelfx.Meta{ Name: "Snake", Desc: "A snake slithers along the floor, head raised: humps rise and roll back down its patterned body to the tail, dust puffs where it touches down, its forked tongue flicks.", Tags: []string{"critter", "snake", "reptile", "ground", "loop"}, Size: [2]int{136, 56}, Origin: [2]int{68, 48}, Duration: 2.4, Loop: true, FPS: 30, BG: "ground", Options: []pixelfx.Option{ {Name: "palette", Default: pixelfx.Palette("#081410", "#123a1e", "#1d5e2a", "#2f8a36", "#5cb848", "#a8e070", "#e8ffc0")}, {Name: "belly", Default: pixelfx.Palette("#4a3a14", "#b08a34", "#f0d878")}, {Name: "seed", Default: pixelfx.Num(1)}, }, }, New: newSnake, }
Snake is a snake slithering along the floor, head raised: humps rise and roll back down its patterned body to the tail, dust puffs where it touches down, its forked tongue flicks. It is registered as "critters/snake".
var Wisp = &pixelfx.Effect{ Meta: pixelfx.Meta{ Name: "Wisp", Desc: "A will-o'-the-wisp loops a figure-eight over the floor: a little soul-flame with a face, its flame tail licking up and streaming behind, shedding puffs and sparks.", Tags: []string{"critter", "wisp", "spirit", "flame", "magic", "flying", "loop"}, Size: [2]int{128, 104}, Origin: [2]int{64, 96}, Duration: 3.2, Loop: true, FPS: 30, BG: "ground", Options: []pixelfx.Option{ {Name: "palette", Default: pixelfx.Palette("#0a1f2e", "#0f3d52", "#14707e", "#1fa8a8", "#4fe0c8", "#a8fff0", "#ffffff")}, {Name: "hover", Default: pixelfx.Num(36)}, {Name: "seed", Default: pixelfx.Num(1)}, }, }, New: newWisp, }
Wisp is a will-o'-the-wisp looping a figure-eight over the floor: a little soul-flame with a face, its flame tail licking up and streaming behind, shedding puffs and sparks. It is registered as "critters/wisp".
Functions ¶
This section is empty.
Types ¶
This section is empty.