SmaamX / rencli

A simple module for image and animation outputs in CLI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RenCLI

A simple module for image and animation outputs in CLI

  • color_char() - Takes a list of color codes and returns escape codes to print the colors
  • colz() - Calls color_char() to convert a string to colored text
  • chn() - check type x= input, typ=type(int,str,bool,list...)
  • neli() - Returns a newline character
  • refs() - Clears the console screen
  • random_noise() - Generates random colors
  • prinx() - sys.stdout.write(colz(image))
  • cuscol() - custom color, text color, etc. (cuscol(lis=['A','\033[93m',...]))
  • image2rencli('test.png',250, show=False) - return image in CLI
  • imgx() - image2rencli but direct print
  • renweb() - import image from web (renweb('http://google.com/test.jpg',100,save='Test',dr=True))
  • vidx() - video output vidx(vpath, fps, reso)

About

A simple module for image and animation outputs in CLI

License:MIT License


Languages

Language:Python 100.0%