Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cccaaannn/funwithconsole
https://github.com/cccaaannn/funwithconsole
Last synced: 12 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/cccaaannn/funwithconsole
- Owner: cccaaannn
- License: mit
- Created: 2019-09-21T22:33:00.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-09-26T17:51:33.000Z (over 5 years ago)
- Last Synced: 2024-10-09T09:32:23.136Z (4 months ago)
- Language: Python
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## funwithconsole
- **Draws strings as big letters to console**
- **Draws christmas tree**
- **Draws various shapes**
## Install
```sh
pip install funwithconsole
```## Usage
```python
from funwithconsole import draw
``````python
draw = draw()
draw.drawString("HELLO", string_char="HI")
``````
HI HI HIHIHIHIHI HI HI HIHIHIHIHI
HI HI HI HI HI HI HI
HIHIHIHIHI HIHIHIHIHI HI HI HI HI
HI HI HI HI HI HI HI
HI HI HIHIHIHIHI HIHIHIHIHI HIHIHIHIHI HIHIHIHIHI
``````python
draw.drawString("console", string_char="//")
``````
////////// ////////// //// // ////////// ////////// // //////////
// // // // // // // // // // //
// // // // // // ////////// // // // //////////
// // // // // // // // // // //
////////// ////////// // //// ////////// ////////// ////////// //////////
``````python
draw.drawTriangle1(shape_size=10, shape_char="hi")
``````
hi
hi hi
hi hi hi
hi hi hi hi
hi hi hi hi hi
hi hi hi hi hi hi
hi hi hi hi hi hi hi
hi hi hi hi hi hi hi hi
hi hi hi hi hi hi hi hi hi
hi hi hi hi hi hi hi hi hi hi
``````python
draw.giveMeChristmas()
``````
*
* * *
* * * * *
0 * *
0 * * 0 0
* * * * * 0 *
* * * * *
* * * * * * *
* * * * * * * 0 *
0 * * * *
* * * * * * *
* * * * * * * * *
* * * * * * * * * * *
* * 0 * *
* * * * * * 0
* * * * 0 * * * *
* * * * * * * * 0 * *
* * * * * 0 * * * * * 0 *
* * * * *
* * * * *
* * * * *
* * * * *
* * * * *
* * * * *
* * * * *
* * * * *
```