Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(1)  |  Derive(0)  |  Import(2)

        def colorful(s, start=0):
    disp = []
    for i, c in enumerate(s):
        disp.append(COLORS[(i + start) % len(COLORS)] + c + RESET)
    return ''.join(disp)
        


src/n/e/neon-0.1.2/neon/example.py   neon(Download)
import time
 
from core import colorful
 
if __name__ == "__main__":
    s = "NEON is colorful cui utility"
    for i in xrange(0, len(s) + 1):
        sys.stdout.write(colorful(s[:i], start=i))

src/n/e/neon-0.1.2/neon/__init__.py   neon(Download)
from core import colorful