GithubHelp home page GithubHelp logo

distance-and-dust's Introduction

Distance and Even Dust

This is a project for NaNoGenMo 2022. In this book, my goal was to use Perlin noise to create new pages for a novel by wandering the three-dimensional space of an existing novel. I take the title from a passage in Gertrude Stein's Tender Buttons (1914), and the novel I used for the source is Tibby: A novel dealing with psychic forces and telepathy by Rosetta Luce Gilchrist (1904), by Rosetta Luce Gilchrist. (I don't know anything about this book. I just pulled it randomly from Gutenberg to have something to experiment with, but I grew to like seeing the snippets come through.)

To produce this, I used P5.js, which is not known for its text-handling capabilities, but I found its implementation of noise() pretty straightforward, and I found the map() and random() functions pretty convenient. My JavaScript code generates DOM elements and then feeds all that to Bindery.js to make it look like a book.

In this repository, I have included the JS file, an HTML file with the necessary libraries included by CDN, a copy of Tibby, and a sample novel. You can also view a live version hosted on p5js.org.

Advice for Reading

The premise of the book is that, when the noise is smooth enough, the letters are more likely to be drawn from the same page or nearby pages. I have structured the book such that the chapters near the middle (12 and 13) are smoother, so these will be nearly readable. Pages nearer to the beginning and end will not be readable in a conventional way, but may be interesting to look at.

distance-and-dust's People

Contributors

zachwhalen avatar

Watchers

 avatar James Cloos 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.