Skip to content

A program made with processing that generates handwritten pages of text generated with markov chains, from two text sources.

Notifications You must be signed in to change notification settings

djebel-amila/markov_handwriter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

markov_handwriter

A program made with processing that generates handwritten pages of text generated with markov chains, from two text sources.

Description

This is a processing based Markov chain text generator, who feeds on the files.txt located in the data folder. The generated are displayed in shapes mimicking handwriting. The program allows to finetune this handwriting font width, height, spacing, interline and the amount of noise added to the vertexes. New pages of text can be generated using the 'refresh' button, and svg files can be saved in the 'output' from the current appearance by using the 'export' button. It is set to export file in a A4 format. In my project, the svg paths are the used to trace the handwriting using actual pens or pencils on a CNC plotter, to produce artefact that like like they were produced by the human hand, when they were in fact generated with the program from top to bottom.

Prerequisites

You need to have Processing 3 installed on your computer to be able to run the program. Get Processing here: https://processing.org/download/

Besides Processing 3, you also need to import:

— controlP5.* library http://www.sojamo.de/libraries/controlP5/

—processing.svg.* library https://github.com/processing/processing/blob/master/java/libraries/svg/README.md

— rita.* library https://rednoise.org/rita/

Installing

open the markov_handwriter.pde file in Processing 3, and run the program. The window will display an initial generated text from your defined source texts (located in the 'data' folder, and called in the global variables: "bible.txt", "simpson.txt"). Use the various controllers to generate new texts, adjust the letters style and hit export when happy. You can then retrieve the svg file in the 'output' folder. And repeat.

Built With

Authors

This project was made as part of the 'Programming for artists' class taught by Lior Ben Gai. Goldmsmiths University, MA Computational Arts 2019.

License

This project is licensed under the GNU General Public License v3.0 - see the https://www.gnu.org/licenses/gpl-3.0.txt for details.

Acknowledgments

References used for the project:

About

A program made with processing that generates handwritten pages of text generated with markov chains, from two text sources.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published