-
Notifications
You must be signed in to change notification settings - Fork 254
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(examples): colors_rgb - color_eyre, etc.
- Rebased - changed hooks to use color_eyre and shuffled some of the init code - Tweaked the VHS tape (it still renders glitches though) - ran the for loop for setting up colors to 1 larger than the column and row counts to avoid off by one errors
- Loading branch information
Showing
3 changed files
with
49 additions
and
39 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
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 |