Skip to content

Commit

Permalink
docs: add fun ascii art logo
Browse files Browse the repository at this point in the history
  • Loading branch information
MultifokalHirn committed Dec 21, 2023
1 parent 2e6cd33 commit 2d49b9c
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 0 deletions.
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,15 +136,35 @@ only_once_callable_function()
```

``` txt
.::=+=--++=::.
.-+++*-+++ =*+*=++=-:
:+#+-=:-.:+--+++=.=+:=**=.
.+#==::--+#*-...:=%%+-:**==*=
.@%=*=+:*#*. .#@#-==-==-*.
#@--+=-##:: %@#=:=:+::=
-@@:==+:%+-. =@=:++=:: -.
*@@:-==:%*-. =@*+=+-+-.-.
:@@:.-==+@%- %@===+==: =.
#@-++-=--#%= :%%----=:. :=
#@=.:-:+++++==:--++=.::=++..:+
:*%#*=:*+: -==:#%#*.==+::..--
::-+**=++-:=--.*%%%==--.:::.
:--:==-:--:--:-:::::
. . : : ...
```

## Addendum
>
> See [`CONTRIBUTING.md`](./CONTRIBUTING.md) for information on how to setup and contribute to this project.
![License](https://img.shields.io/github/license/MultifokalHirn/ornaments)

<div>
<img align="center" src="./docs/img/o1.png" width="100" height="100" />
<img align="center" src="./docs/img/o2.png" width="100" height="100" />
<img align="center" src="./docs/img/oran.png" width="100" height="100" />
</div>
<br />
<br />

Expand Down
35 changes: 35 additions & 0 deletions src/ornaments/_utils.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
import os


def print_logo(terminal_width: int = 80) -> None:
"""
Prints the logo of the project.
Logo was generated using ascii-image-converter (https://github.com/TheZoraiz/ascii-image-converter):
$ ascii-image-converter ornaments.png --dimensions 40,17
"""
try:
terminal_width = os.get_terminal_size().columns
except Exception:
terminal_width = 80

logo_width = 40
padding = int((terminal_width - logo_width) / 2) * " "
print("\n")

print(padding + " .::=+=--++=::. ")
print(padding + " .-+++*-+++ =*+*=++=-: ")
print(padding + " :+#+-=:-.:+--+++=.=+:=**=. ")
print(padding + " .+#==::--+#*-...:=%%+-:**==*= ")
print(padding + " .@%=*=+:*#*. .#@#-==-==-*. ")
print(padding + " #@--+=-##:: %@#=:=:+::= ")
print(padding + " -@@:==+:%+-. =@=:++=:: -. ")
print(padding + " *@@:-==:%*-. =@*+=+-+-.-. ")
print(padding + " :@@:.-==+@%- %@===+==: =. ")
print(padding + " #@-++-=--#%= :%%----=:. := ")
print(padding + " #@=.:-:+++++==:--++=.::=++..:+ ")
print(padding + " :*%#*=:*+: -==:#%#*.==+::..-- ")
print(padding + " ::-+**=++-:=--.*%%%==--.:::. ")
print(padding + " :--:==-:--:--:-::::: ")
print(padding + " . . : : ... ")

0 comments on commit 2d49b9c

Please sign in to comment.