Quilting-with-Python: Difference between revisions

From XPUB & Lens-Based wiki
No edit summary
Line 2: Line 2:


A patch is a plain text object of 82 characters and 74 lines.
A patch is a plain text object of 82 characters and 74 lines.
It is saved as a plain text (.txt) file.
It is saved as a plain text (.txt) file.


Patches are collected in the XPUB git repository "S13-Words-for-the-Future-notebooks", in the folder "patches":  
Patches are collected in the XPUB git repository "S13-Words-for-the-Future-notebooks", in the folder "patches":  
https://git.xpub.nl/XPUB/S13-Words-for-the-Future-notebooks/src/branch/master/patches
https://git.xpub.nl/XPUB/S13-Words-for-the-Future-notebooks/src/branch/master/patches


They can be made in various ways:  
They can be made in various ways:  
- by drawing the patch character for character  
 
- by copy/pasting lines together
* by drawing the patch character for character  
- by writing loops in python
* by copy/pasting lines together
- by using aalib to create ascii art images
* by writing loops in python
- ...
* by using aalib to create ascii art images
* ...


=Protocol: QUILT=
=Protocol: QUILT=
Line 19: Line 22:


A quilt is an assembled plain text object of 328 characters and 296 lines.
A quilt is an assembled plain text object of 328 characters and 296 lines.
It is saved as a PDF (.pdf) file.  
It is saved as a PDF (.pdf) file.  


The font used for the quilt is: M+ 1M, regular
The font used for the quilt is: M+ 1M, regular
The fontsize used for the quilt is: 14.4
The fontsize used for the quilt is: 14.4
The available character set is:  1686 Glyphs, https://www.fontsquirrel.com/fonts/M-1m?filter%5Bclassifications%5D%5B0%5D=monospaced&filter%5Blicense%5D%5B0%5D=web
The available character set is:  1686 Glyphs, https://www.fontsquirrel.com/fonts/M-1m?filter%5Bclassifications%5D%5B0%5D=monospaced&filter%5Blicense%5D%5B0%5D=web



Revision as of 18:24, 12 October 2020

Protocol: PATCH

A patch is a plain text object of 82 characters and 74 lines.

It is saved as a plain text (.txt) file.

Patches are collected in the XPUB git repository "S13-Words-for-the-Future-notebooks", in the folder "patches":

https://git.xpub.nl/XPUB/S13-Words-for-the-Future-notebooks/src/branch/master/patches

They can be made in various ways:

  • by drawing the patch character for character
  • by copy/pasting lines together
  • by writing loops in python
  • by using aalib to create ascii art images
  • ...

Protocol: QUILT

Page Format: A0

A quilt is an assembled plain text object of 328 characters and 296 lines.

It is saved as a PDF (.pdf) file.

The font used for the quilt is: M+ 1M, regular

The fontsize used for the quilt is: 14.4

The available character set is: 1686 Glyphs, https://www.fontsquirrel.com/fonts/M-1m?filter%5Bclassifications%5D%5B0%5D=monospaced&filter%5Blicense%5D%5B0%5D=web

Color Mode: black and white

A quilt is the assembly of 16 patches:

00 01 02 03
04 05 06 07
08 09 10 11
12 13 14 15

The assembling is done in Python, using a list of lists of patches:

quilt = [
   [patch00, patch01, patch02, patch03],
   [patch04, patch05, patch06, patch07],
   [patch08, patch09, patch10, patch11],
   [patch12, patch13, patch14, patch15]
]

A quilt notebook can be found here: https://git.xpub.nl/XPUB/S13-Words-for-the-Future-notebooks/src/branch/master/quilt.ipynb

Quilts are collected here: https://git.xpub.nl/XPUB/S13-Words-for-the-Future-notebooks/src/branch/master/quilts

Links