Skip to content

SciTechDude/PyTextArt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 

Repository files navigation

PyTextArt

PyTextArt lets you generate different shapes given it's size and shape-type. For now a bow-tie shape made of any given characaters of any given size can be created.

Option for hollow shape is possible using hollow attribute. In this case code ignores empty_value.

bowTie Shape Generator

For example:

BowTie(size=7, fill_value = '#', empty_value = ' ', hollow = False).print_shape()

Result:

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

Another example:

BowTie(size=5, fill_value = '*', empty_value = '-', hollow = False).print_shape()

 
*-------*
-*-----*-
*-*---*-*
-*-*-*-*-
*-*-*-*-*
-*-*-*-*-
*-*---*-*
-*-----*-
*-------*

One more example: BowTie(size=10, fill_value = '+', empty_value = '.', hollow = True).print_shape()

+                 +
++               ++
+ +             + +
+  +           +  +
+   +         +   +
+    +       +    +
+     +     +     +
+      +   +      +
+       + +       +
+        +        +
+       + +       +
+      +   +      +
+     +     +     +
+    +       +    +
+   +         +   +
+  +           +  +
+ +             + +
++               ++
+                 +

About

Generates Bow Tie pattern of given row numbers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages