Giter VIP home page Giter VIP logo

string-painter's Introduction

spaint

print colorful string in console

INSTALL

pip3 install spaint

USAGE


import spaint.spaint as spaint

spanpaint

#spaint.spanpaint(string,(start1,end1),color1,(start2,end2),color2,...)

spaint.spanpaint("0123456789x",(2,3),'blue',(5,7),'yellow',(9,10),'green')

sieipaint

#spaint.sieipaint(string,start1,end1,color1,start2,end2,color2,...)

spaint.sieipaint("0123456789x",2,3,'blue',5,7,'yellow',9,10,'green')

sipaint

#spaint.sipaint(string,start1,color1,start2,color2,...)    

spaint.sipaint("0123456789x",2,'blue',4,'yellow',9,'green')

eipaint

#spaint.eipaint(string,end1,color1,end2,color2)

spaint.eipaint("0123456789x",4,'blue',9,'yellow')

slpaint

#spaint.slpaint(word1,color1,word2,color2,.....)

spaint.slpaint('<div>','yellow','content','green','</div>','yellow')

mlpaint

#spaint.mlpaint(lines,colors,**kwargs)

lines = [
    'the first green line',
    'the second yellow line',
    'the third blue line'
]

colors = ['green','yellow','blue']
spaint.mlpaint(lines,colors)

ps = spaint.mlpaint(lines,colors,rtrn=True)
print(ps)

rainbow

#spaint.rainbow(word,interval,**kwargs)

spaint.rainbow('colorful')
spaint.rainbow('colorful')
spaint.rainbow('colorful')
spaint.rainbow('colorful',2)
spaint.rainbow('colorful',2)
spaint.rainbow('colorful',2)
spaint.rainbow('colorful',rand=False)
spaint.rainbow('colorful',rand=False)

rainbow_lines

#spaint.rainbow_lines(lines,interval,**kwargs)

lines = [
    'the first line',
    'the second line',
    'the third line',
    'the fourth line',
    'the fifth line'
]

spaint.rainbow_lines(lines)

ansi8_

spaint.ansi8_help()
spaint.ansi8_test(95)
spaint.ansi8_test('brightmagenta')

ansi256_

spaint.ansi256_help()
spaint.ansi256_test(2)
spaint.ansi256_test('green')

win8_

spaint.win8_help()
spaint.win8_test(12)
spaint.win8_test('lightcyan')

string-painter's People

Contributors

ihgazni avatar ihgazni2 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.