1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
# Gradient
*Module*: `terminaltexteffects.utils.graphics`
## Basic Usage
```python
from terminaltexteffects.utils.graphics import Gradient, Color
rgb = Gradient(Color("#ff0000"), Color("#00ff00"), Color("#0000ff"), steps=5)
for color in rgb:
# color is a hex string
...
```
## Printing Gradients
Gradients can be printed to the terminal to show information about the stops, steps, and resulting spectrum.

---
## Gradient Reference
::: terminaltexteffects.utils.graphics.Gradient
|