All Projects → undertherain → pycontextfree

undertherain / pycontextfree

Licence: MPL-2.0 license
Pythonic generative art tool

Programming Languages

python
139335 projects - #7 most used programming language
Jupyter Notebook
11667 projects
Mako
254 projects
HTML
75241 projects

Projects that are alternatives of or similar to pycontextfree

generative-art-Processing
Processingによるアート作品をまとめたリポジトリです.一部の作品はopenFrameworksで書かれています.This is a repository for art portfolio of Processing art. Some of arts are written in openFrameworks, one of the C++ libraries.
Stars: ✭ 31 (-3.12%)
Mutual labels:  art, generative-art
triangula
Generate high-quality triangulated and polygonal art from images.
Stars: ✭ 3,775 (+11696.88%)
Mutual labels:  art, generative-art
generative-art
🌈🎨 Generative Art is the idea realized as genetic code of artificial events, as construction of dynamic complex systems able to generate endless variations. This is also a nuxt-module (@luxdamore/nuxt-canvas-sketch) - [three.js, tensorflow.js and gsap are not included].
Stars: ✭ 41 (+28.13%)
Mutual labels:  art, generative-art
JRubyArt
JRubyArt a ruby implementation of processing
Stars: ✭ 87 (+171.88%)
Mutual labels:  art, generative-art
generative.fm
A platform for playing generative music in the browser.
Stars: ✭ 1,557 (+4765.63%)
Mutual labels:  art, generative-art
stamps
A language for producing art
Stars: ✭ 116 (+262.5%)
Mutual labels:  art, generative-art
wasabi
A Buddhabrot explorer based on wabisabi, but with a more affectionate name.
Stars: ✭ 17 (-46.87%)
Mutual labels:  fractal, generative-art
Urpflanze
A library for developers who want to approach to creative coding, artists who want to approach coding and for those who find it fun to play with math.
Stars: ✭ 118 (+268.75%)
Mutual labels:  art, generative-art
xirho
xirho is a simple generalized iterated function system plotter.
Stars: ✭ 16 (-50%)
Mutual labels:  art, fractal
glitch-art-bot-ts
Twitter bot that glitches photos on the fly
Stars: ✭ 66 (+106.25%)
Mutual labels:  art, generative-art
Generative-Art
A selection of generative art scripts written in Python
Stars: ✭ 284 (+787.5%)
Mutual labels:  art, generative-art
microbium-app
Draw new worlds
Stars: ✭ 89 (+178.13%)
Mutual labels:  art, generative-art
Blossom
A lovely interactive music generator
Stars: ✭ 162 (+406.25%)
Mutual labels:  art, generative-art
generative-art
I wanted to make a nicer sticker for Munihac, then things got out of hand.
Stars: ✭ 134 (+318.75%)
Mutual labels:  art, generative-art
Art Dcgan
Modified implementation of DCGAN focused on generative art. Includes pre-trained models for landscapes, nude-portraits, and others.
Stars: ✭ 1,882 (+5781.25%)
Mutual labels:  art, generative-art
incomplete-cubes-generator
Incomplete Open Cubes Generator
Stars: ✭ 18 (-43.75%)
Mutual labels:  art, generative-art
Generative.fm
A platform for playing generative music in the browser.
Stars: ✭ 1,534 (+4693.75%)
Mutual labels:  art, generative-art
Pxlsrt
Pixel sorter written in Ruby
Stars: ✭ 119 (+271.88%)
Mutual labels:  art, generative-art
book-mdpc
Il cinema tra le righe... di codice!
Stars: ✭ 59 (+84.38%)
Mutual labels:  art, generative-art
corruption-loops
Digitally disintegrating music
Stars: ✭ 37 (+15.63%)
Mutual labels:  art, generative-art

pycontextfree

build status from Travis CI https://coveralls.io/repos/github/undertherain/pycontextfree/badge.svg?branch=master pypi version

CFDG-inspired cairo-based pythonic generative art tool

Here is an example of simple code producing stochastic fractal tree:

from contextfree.contextfree import *

@check_limits
def branch():
    line(0,1)
    with translate(0,0.9):
        with scale(0.7 + rnd(0.15)):
            with color(alpha=0.95):
                with rotate(-0.3 + rnd(0.3)):
                    branch()
                with rotate(0.3 + rnd(0.3)):
                    branch()

init(canvas_size=(300,300), background_color="#FFFFFF")
with scale(3):
    branch()

display_ipython()

Here is the output:

[tree_example]

Check examples folder for more fun stuff.

How do I get set up?

  • pip3 install contextfree for latest stable release
  • pip3 install git+https://github.com/undertherain/pycontextfree.git for recent development version
  • Python 3.6 or later is required
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].