ChrisBuilds / terminaltexteffects

TerminalTextEffects (TTE) is a terminal visual effects engine, application, and Python library.
https://chrisbuilds.github.io/terminaltexteffects/
MIT License
2.6k stars 43 forks source link

Reimplement __iter__ to return a generator over spectrum. #7

Closed ChrisBuilds closed 3 months ago

ChrisBuilds commented 3 months ago

Corrects the improper implementation of the iterator protocol wherein index was reset in the __iter__ method of Gradient. __iter__ now returns a generator over Gradient.spectrum.