Skip to content

Instantly share code, notes, and snippets.

View R3V1Z3's full-sized avatar

R3V1Z3 R3V1Z3

  • Los Angeles, CA
View GitHub Profile
@R3V1Z3
R3V1Z3 / snow.lua
Created November 4, 2025 06:21
Example of animated snow in the terminal using Storie engine.
-- snow.lua - Realistic snow effect module for Storie
-- Can be embedded in any Markdown content with:
-- ```lua module:snow
-- [paste this file content]
-- ```
local Snow = {}
-- Configuration
local SNOW_COUNT = 50
title minWidth minHeight
Box Drawing Test
60
25
function globalRender()
  buffer:clear()
  
 -- Title
title minWidth minHeight
UI
60
25
local UI = {}

local Widget = {}
Widget.__index = Widget
title author player
Forest Adventure
Storied
x y inventory flags
4
2
title author minWidth minHeight
Storie Formatting Demo
Demo
60
20

Inline Formatting Demo

Welcome to the enhanced Storie engine with inline formatting support!

title minWidth minHeight
Sliders
40
15
local UI = {}

local Widget = {}
title minWidth minHeight
Box Drawing
40
10
function globalRender()
  buffer:clear()
  
-- Canvas Navigation Plugin for Storied
-- Provides spatial layout, smooth panning, and interactive link navigation
local Canvas = {}
-- Configuration
local SECTION_WIDTH = 60
local SECTION_HEIGHT = 20
local SECTION_PADDING = 10
local MAX_SECTIONS_PER_ROW = 3
──▒▒▒▒▒▒───▄████▄
─▒─▄▒─▄▒──███▄█▀
─▒▒▒▒▒▒▒─▐████──█─█
─▒▒▒▒▒▒▒──█████▄
─▒─▒─▒─▒───▀████▀
twitter.com/ArtsAscii
##Refresh rate of the visualizers. A really high refresh rate may cause screen tearing. Default is 20.
visualizer.fps=60
##Sets the audio sources to use. Currently available ones are "mpd" and "alsa"Sets the audio sources to use.
##Currently available ones are "mpd", "pulse" and "alsa". Defaults to "mpd".
#audio.sources=pulse
##vis tries to find the correct pulseaudio sink, however this will not work on all systems.
##If pulse audio is not working with vis try switching the audio source. A list can be found by running the
##command pacmd list-sinks | grep -e 'name:' -e 'index'