Random Arts Twitter Bot

This project implements a Twitter bot (@RandomArtsBot) that generates random art using your message. To test it out, send a message to the bot using the following syntax.

An expression is made up of functions and primitives.

Primitives : x, y, const

Functions :

  • + e.g. (+ x y)
  • - e.g. (- x y)
  • * e.g. (* x y)
  • / e.g. (/ x y)
  • sin e.g. (sin x)
  • cos e.g. (cos x)
  • tan e.g. (tan x)
  • sqr e.g. (sqr x)
  • sqrt e.g. (sqrt x)
  • mod e.g. (mod x const)
  • well e.g. (well x)
  • tent e.g. (tent x)
  • max e.g. (max x)
  • min e.g. (min x)
  • avg e.g. (avg x)
  • lvl e.g. (lvl x y const)
  • mix e.g. (mix x y const)

You can mix & match different functions together, for example:

  • (+ (tan x) (cos y))
  • (+ (mod (* (sin y) const) (mod x y)) (well (+ (sin x) (sin y))))
  • (mod (avg x y) (mix (well y) (tent (cos (+ x const))) const))

Contributing and copyright

The project is hosted on GitHub where you can report issues, fork the project and submit pull requests. If you're adding a new public API, please also consider adding samples that can be turned into a documentation. You might also want to read the library design notes to understand how it works.

The library is available under Public Domain license, which allows modification and redistribution for both commercial and non-commercial purposes. For more information see the License file in the GitHub repository.

Fork me on GitHub