mirror of
https://github.com/ratatui-org/ratatui
synced 2024-11-25 22:20:31 +00:00
6ad4bd4cf2
The intent of these examples is to show the available colors and modifiers. - added impl Display for Color ![colors](https://vhs.charm.sh/vhs-2ZCqYbTbXAaASncUeWkt1z.gif) ![modifiers](https://vhs.charm.sh/vhs-2ovGBz5l3tfRGdZ7FCw0am.gif)
18 lines
655 B
VHS
18 lines
655 B
VHS
# 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.tape`
|
|
Output "target/colors.gif"
|
|
# The OceanicMaterial theme is a good choice for this example (Obsidian is almost as good) because:
|
|
# - Black is dark and distinct from the default background
|
|
# - White is light and distinct from the default foreground
|
|
# - Normal and bright colors are distinct
|
|
# - Black and DarkGray are distinct
|
|
# - White and Gray are distinct
|
|
Set Theme "OceanicMaterial"
|
|
Set Width 1200
|
|
Set Height 1410
|
|
Hide
|
|
Type "cargo run --example=colors --features=crossterm"
|
|
Enter
|
|
Sleep 2s
|
|
Show
|
|
Sleep 1s
|