Skip to main content

Ascii Word Writing

Project description

License: MIT Python 3.9.2

Description :

The pyftext module converts your words to Ascii. You can draw Pyramid shapes at any height you want.

Installation :

pip install pyftext

How to Use

Pyramid Arguments :

Piramit(karakter, height, yazi)
karakter	The character to use when creating the shape.
height		Height of the Pyramid
yazi		  Writing in the middle of the created Pyramid
------
full_pyramid()	Full Pyramid
half()		      Half Pyramid 
double()	      Double Half Pyramid

Text Arguments :

Text(text, karakter, fontsize)
text		  The text you want to be created
karakter	Character to use when creating the shape
fontsize	Size of the figure (Default 15)
------
yaz()		  Writes text to the screen
rastgele()	Random font assignment

Examples

Random Text

from pyftext import Text

metin = Text(text="YAZILIM  FURYASI", karakter='@', fontsize=10)
metin.rastgele()

OUTPUT:

    @   @   @@@@@@ @  @    @  @@     @        @@@@ @   @  @@@  @    @   @     @@@@ @
@   @  @ @      @  @  @    @  @@@   @@        @    @   @  @  @  @   @  @ @   @     @
@@ @   @ @     @   @  @    @  @ @   @@        @    @   @  @  @  @@ @   @ @   @     @
 @ @   @ @     @   @  @    @  @ @  @ @        @    @   @  @  @   @ @   @ @    @@   @
  @   @   @   @    @  @    @  @ @@ @ @        @@@@ @   @  @@@     @   @   @     @  @
  @   @@@@@  @     @  @    @  @  @ @ @        @    @   @  @  @    @   @@@@@      @ @
  @  @     @@      @  @    @  @  @@  @        @    @   @  @  @    @  @     @ @   @ @
  @  @     @@@@@@@ @  @@@@ @  @   @  @        @     @@@   @   @   @  @     @  @@@  @

Default Text

from pyftext import Text

metin = Text(text="YAZILIM  FURYASI", karakter='#',fontsize=10)
metin.yaz()

OUTPUT:

 #   #    #    ####  #  #     #  #     #        ####  #   #  ####   #   #    #     ###   #
 #   #   # #      #  #  #     #  ##   ##        #     #   #  #   #  #   #   # #   #   #  #
  # #    # #     #   #  #     #  ##   ##        #     #   #  #   #   # #    # #   #      #
   #    #   #   #    #  #     #  # # # #        ####  #   #  ####     #    #   #   ###   #
   #    #####   #    #  #     #  # # # #        #     #   #  #  #     #    #####      #  #
   #    #   #  #     #  #     #  #  #  #        #     #   #  #  #     #    #   #  #   #  #
   #   #     # ####  #  ####  #  #  #  #        #      ###   #   #    #   #     #  ###   #

Pyramids

from pyftext import Piramit

piramit = Piramit(karakter="#", height=10)
piramit.full_pyramid()
piramit.double()
piramit.half()

OUTPUT:

         #
        ###        
       #####       
      #######      
     #########     
    ###########    
   #############   
  ###############  
 ################# 
###################
         #  #      
        ##  ##     
       ###  ###    
      ####  ####   
     #####  #####  
    ######  ###### 
   #######  #######
  ########  ########
 #########  #########
##########  ##########
         #
        ##
       ###
      ####
     #####
    ######
   #######
  ########
 #########
##########

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyftext-1.1.tar.gz (4.6 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page