2023-09-10 00:30:41 +00:00
|
|
|
# This is a vhs script. See https://github.com/charmbracelet/vhs for more info.
|
|
|
|
# To run this script, install vhs and run `vhs ./examples/colors_rgb.tape`
|
2023-12-17 09:34:59 +00:00
|
|
|
|
|
|
|
# note that this script sometimes results in the gif having screen tearing
|
|
|
|
# issues. I'm not sure why, but it's not a problem with the library.
|
2023-09-10 00:30:41 +00:00
|
|
|
Output "target/colors_rgb.gif"
|
2023-10-18 11:35:51 +00:00
|
|
|
Set Theme "Aardvark Blue"
|
2023-09-10 00:30:41 +00:00
|
|
|
Set Width 1200
|
2023-12-17 09:34:59 +00:00
|
|
|
Set Height 1200
|
|
|
|
|
|
|
|
# unsure if these help the screen tearing issue, but they don't hurt
|
|
|
|
Set Framerate 60
|
|
|
|
Set CursorBlink false
|
|
|
|
|
2023-09-10 00:30:41 +00:00
|
|
|
Hide
|
2023-12-17 09:34:59 +00:00
|
|
|
Type "cargo run --example=colors_rgb --features=crossterm --release"
|
2023-09-10 00:30:41 +00:00
|
|
|
Enter
|
|
|
|
Sleep 2s
|
2023-12-17 09:34:59 +00:00
|
|
|
# Screenshot "target/colors_rgb.png"
|
2023-09-10 00:30:41 +00:00
|
|
|
Show
|
2023-12-17 09:34:59 +00:00
|
|
|
Sleep 10s
|