AsciiWriter: Difference between revisions
No edit summary |
No edit summary |
||
Line 18: | Line 18: | ||
* https://www.algolit.net/index.php/Data_Workers_Publication | * https://www.algolit.net/index.php/Data_Workers_Publication | ||
* https://darc.au.dk/publications/peer-reviewed-newspaper#c40171 | * https://darc.au.dk/publications/peer-reviewed-newspaper#c40171 | ||
* https://git.vvvvvvaria.org/mb/data-workers-publication | |||
'''Gallery''' | '''Gallery''' | ||
<gallery> | <gallery> | ||
File:Plaintext-partyline-varia.png | File:Plaintext-partyline-varia.png|Plaintext Partyline, made by Varia/Manetta Berends, https://varia.zone/en/plaintext-partyline.html | ||
File:Research refusal spread-cover.png | File:Research refusal spread-cover.png|Peer-reviewed Newspaper Vol 10 No 1 (2021): RESEARCH REFUSAL, made by OSP/Gijs de Heij, https://darc.au.dk/publications/peer-reviewed-newspaper#c40171 | ||
File:Osp-gijs-de-heij-kask-workshop.png | File:Osp-gijs-de-heij-kask-workshop.png|KASK Open Design workshop, example for posters made with plain text, made by OSP/Gijs de Heij | ||
File:Data-workers.en.cover.png | File:Data-workers.en.cover.png|Cover of the Data Workers publication, made by Manetta Berends for Algolit, https://www.algolit.net/index.php/Data_Workers_Publication | ||
File:Data-workers-plain-text.png | File:Data-workers-plain-text.png|Screenshot of the Data Workers publication previewed in plain text, made by Manetta Berends for Algolit, https://git.vvvvvvaria.org/mb/data-workers-publication | ||
</gallery> | </gallery> | ||
Revision as of 11:30, 7 April 2023
About asciiWriter
A python library to draw with plain text in ASCII art style (but with Unicode).
Install
$ pip3 install asciiwriter
Links
- https://pypi.org/project/asciiWriter/
- https://git.vvvvvvaria.org/mb/asciiWriter
- https://vvvvvvaria.org/plaintext-partyline/
- asciiWriter/sinus.py
- https://www.algolit.net/index.php/Data_Workers_Publication
- https://darc.au.dk/publications/peer-reviewed-newspaper#c40171
- https://git.vvvvvvaria.org/mb/data-workers-publication
Gallery
Plaintext Partyline, made by Varia/Manetta Berends, https://varia.zone/en/plaintext-partyline.html
Peer-reviewed Newspaper Vol 10 No 1 (2021): RESEARCH REFUSAL, made by OSP/Gijs de Heij, https://darc.au.dk/publications/peer-reviewed-newspaper#c40171
Cover of the Data Workers publication, made by Manetta Berends for Algolit, https://www.algolit.net/index.php/Data_Workers_Publication
Screenshot of the Data Workers publication previewed in plain text, made by Manetta Berends for Algolit, https://git.vvvvvvaria.org/mb/data-workers-publication
Use asciiWriter
marks
With marks you can specify what kind of text you are passing on to asciiWriter.
random()
sentence(str)
text(str)
single(str)
space(str)
patterns
You can draw patterns with the following functions.
diagonal(x, y, width, height, mark, blank)
Draw a diagnal line from top left to bottom right.
cross(x, y, width, height, mark, blank)
Draw two diagonals.
horizontal(y)
Draw horizontal line at given Y position.
vertical(x)
Draw a vertical line at given X position.
sinus_vertical(period=0.2, amplitude=0.5, offset_t=0, offset=0)
Draw a sinus shape vertically.
sinus_horizontal(period=0.2, amplitude=0.5, offset_t=0, offset=0)
Draw a sinus shape horizontally.
image(path, threshold=128)
Put marks based on a mask. Requires Pillow to be installed.
$ pip3 install pillow