Giter VIP home page Giter VIP logo

concrete's Introduction

concrete

Procedurally generated concrete poetry.

I was inspired by Lewis Thomas's wonderful comparison between human speech and the pursuits of social insects:

Language is, like nest building or hive making, the universal and biologically specific activity of human beings. We engage in it communally, compulsively, and automatically. We cannot be human without it; if we were to be separated from it our minds would die, as surely as bees lost from the hive.

[…] New ways of stringing words and sentences together come into fashion and vanish again, but the underlying structure simply grows, enriches itself, and expands.

Ant nests accrete from the tiny bits of earth that each worker carries in its mandibles. Here, sculptural forms are shaped by the dirt clods of language—the letters of our alphabet.

Each time it is run, the program:

  • selects random animal species from a static list in Darius Kazemi's Corpora project;
  • sorts the letters in each species according to character density (e.g. seal → slea);
  • finds a random image of each species using Google's JSON/Atom Custom Search API;
  • maps the reordered letters to pixel intensities with code from asciinator.py; and
  • parses the resulting poems into HTML that is rendered as a PDF file with wkhtmltopdf.

You can see example output here and here.

concrete's People

Contributors

nmifsud avatar

Stargazers

Jorge Gomez avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.