noise: A friendly language for graphic design

[ library, mit, program, text ] [ Propose Tags ] [ Report a vulnerability ]

A friendly language for graphic design


[Skip to Readme]

Modules

  • Text
    • Noise
      • Text.Noise.Compiler
        • Text.Noise.Compiler.Document
          • Text.Noise.Compiler.Document.Color
      • Text.Noise.Error
      • Text.Noise.Parser
        • Text.Noise.Parser.AST
        • Text.Noise.Parser.Character
      • Text.Noise.Renderer
      • Text.Noise.SourceRange

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.0.1
Dependencies base (>=4.5 && <4.6), blaze-markup (>=0.5 && <0.6), blaze-svg (>=0.3 && <0.4), bytestring (>=0.9 && <0.10), containers (>=0.4 && <0.5), cryptohash (>=0.8 && <0.9), network (>=2.3 && <2.4), noise, parsec (>=3.1 && <3.2) [details]
License MIT
Copyright Tom Brow
Author Tom Brow
Maintainer Tom Brow <tom@tombrow.com>
Category Text
Home page http://github.com/brow/noise
Bug tracker http://github.com/brow/noise/issues
Source repo head: git clone git://github.com/brow/noise.git
Uploaded by TomBrow at 2013-05-21T20:46:26Z
Distributions
Reverse Dependencies 1 direct, 0 indirect [details]
Executables noise
Downloads 1023 total (9 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
All reported builds failed as of 2016-12-21 [all 7 reports]

Readme for noise-0.0.1

[back to package description]

Noise

Noise is a concise, friendly language for graphic design that translates directly to SVG 1.1. You can learn more about the language at its webpage.

This project is an implementation of Noise written in Haskell. It includes an interpreter and a library of modules that you can use to write your own interpreter.

Installation

First, install the Haskell Platform. Then:

git clone git@github.com:brow/noise.git
cd noise
cabal install

Let's make sure it worked:

$ noise --help
Usage: noise [file]
  -h  --help  Print this help text.

Usage

noise reads Noise code from standard input and writes SVG to standard output:

echo "shape.circle(10,10,10,fill:color.red)" | noise > circle.svg

It can also read from a file:

echo "shape.rectangle(0,0,10,10,fill:color.blue)" > rectangle.noise
noise rectangle.noise > rectangle.svg

Use convert from the ImageMagick package to write other image formats:

echo "shape.circle(10,10,10,fill:color.green)" | noise | convert -size 20x20 svg:- circle.png

Development

I recommend using cabal-dev to maintain a sandboxed build environment. If you don't have it already:

cabal install cabal-dev

Then, in the project root:

cabal-dev install-deps --enable-tests
cabal-dev configure --enable-tests

After performing the above setup once, you can build and test noise like so:

cabal-dev build && cabal-dev test

For a more detailed and colorful test report, try this:

cabal-dev build && ./dist/build/test/test