From 787dbd9091c3ef63c1392276bc036891391d0376 Mon Sep 17 00:00:00 2001 From: Mark Date: Sat, 12 Nov 2022 18:16:35 -0800 Subject: [PATCH] Added vhs tape --- .gitignore | 7 +++- misc/demo.tape | 91 ++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 97 insertions(+), 1 deletion(-) create mode 100644 misc/demo.tape diff --git a/.gitignore b/.gitignore index c3360a7..c6bd647 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,12 @@ +# Python dev files venv __pycache__ +# Python build files *.egg-info *.spec build -dist \ No newline at end of file +dist + +# Misc +*.gif \ No newline at end of file diff --git a/misc/demo.tape b/misc/demo.tape new file mode 100644 index 0000000..aa91477 --- /dev/null +++ b/misc/demo.tape @@ -0,0 +1,91 @@ +# How to use this: +# install vhs +# enter venv +# vhs < misc/demo.tape +# +# We need macros.lamb, so run this from +# the root of this repository. + + +#Output lambdemo.mp4 +Output lambdemo.gif + +Set FontSize 30 +Set Width 2000 +Set Height 1500 +Set FontFamily "FantasqueSansMono NF" +Set TypingSpeed 60ms +Set Framerate 30 + +# Intro +Sleep 2000ms +Type "lamb" +Sleep 1000ms +Enter +Sleep 2000ms + +# Demo 1: load +Type ":load macros.lamb" +Sleep 500ms +Enter +Sleep 2000ms + +Type "NOT T" +Sleep 1000ms +Enter +Sleep 6s + +Type ":clear" +Sleep 1000ms +Enter +Sleep 1500ms + + +# Demo 2: stepping +Type ":step" +Sleep 500ms +Enter +Sleep 1500ms + +Type "NOT T" +Sleep 100ms +Enter +Sleep 1500ms +Enter +Sleep 760ms +Enter +Sleep 850ms +Enter +Sleep 650ms +Enter +Sleep 700ms +Enter + +Sleep 3000ms + +Type ":step" +Sleep 500ms +Enter +Sleep 6s +Type ":clear" +Sleep 1000ms +Enter +Sleep 1500ms + +# Demo 3: macros +Type "M = \x.x x" +Sleep 500ms +Enter +Sleep 500ms + +Type "M M" +Sleep 500ms +Enter +Sleep 3s +Ctrl+c +Sleep 1000ms + +Type "Y FAC 3" +Sleep 500ms +Enter +Sleep 6s