Skip to content

Commit a62847a

Browse files
committed
Walk the spinner slowly around a rainbow gradient
The default AnimatedMarker stepped a full stop of a three-colour gradient on every redraw (cyan, magenta, yellow, then a hard reset), so its colour jumped. It now advances twelve degrees of hue per redraw around a new HueGradient, exposed as colors.rainbow, and completes a lap every 30 redraws. The lap length is configurable through the new color_cycle argument, which rejects values below 1. HueGradient wraps at the seam (0 and 1 are both red) and emits colours without an xterm index, so truecolor terminals render the exact RGB and 256-colour terminals the nearest cube entry instead of snapping to a registered endpoint. Re-render the demos that show the default spinner and regenerate the API surface snapshot for the widened AnimatedMarker signature.
1 parent c018ccc commit a62847a

14 files changed

Lines changed: 194 additions & 26 deletions

‎docs/_static/demos/howto-unknown-length.svg‎

Lines changed: 1 addition & 1 deletion
Loading

‎docs/_static/demos/readme-parallel.svg‎

Lines changed: 1 addition & 1 deletion
Loading

‎docs/_static/demos/readme-unknown-length.svg‎

Lines changed: 1 addition & 1 deletion
Loading

‎docs/_static/demos/tutorial-step2.svg‎

Lines changed: 1 addition & 1 deletion
Loading

0 commit comments

Comments
 (0)