-
-
Notifications
You must be signed in to change notification settings - Fork 338
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(examples): add animation and FPS counter to colors_rgb (#583)
- Loading branch information
Showing
4 changed files
with
177 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,21 @@ | ||
# 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` | ||
|
||
# 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. | ||
Output "target/colors_rgb.gif" | ||
Set Theme "Aardvark Blue" | ||
Set Width 1200 | ||
Set Height 800 | ||
Set Height 1200 | ||
|
||
# unsure if these help the screen tearing issue, but they don't hurt | ||
Set Framerate 60 | ||
Set CursorBlink false | ||
|
||
Hide | ||
Type "cargo run --example=colors_rgb --features=crossterm" | ||
Type "cargo run --example=colors_rgb --features=crossterm --release" | ||
Enter | ||
Sleep 2s | ||
Screenshot "target/colors_rgb.png" | ||
# Screenshot "target/colors_rgb.png" | ||
Show | ||
Sleep 1s | ||
Sleep 10s |