Showing posts with label contextfree. Show all posts
Showing posts with label contextfree. Show all posts

Friday, 10 February 2012

Contextfree - Square Recursion with Pastel Circles

circles2

circles

startshape circlepaper
 
rule circlepaper {
    2 * {y 1} {
       2 * {x 1} pastel {}
     }
}
 
rule pastel .2 { 
    CIRCLE{hue 180 sat 1 b 1 a -0.75}
}

rule pastel .2 {
    CIRCLE{hue 0 sat 1 b 1 a -0.75}
}

rule pastel .2 {
    CIRCLE{hue 50 sat 1 b 1 a -0.75}
}

rule pastel .2 {
    CIRCLE{hue 100 sat 1 b 1 a -0.75}
}

rule pastel {
    circlepaper{s .5 y -.25 x -.25 b 0}
}

Wednesday, 8 February 2012

Contextfree - Moireballs

moireball

moireball3 moireball4


Playing with a simple rule set on Contextfree. Looks even more full of moire when compressed automatically by Flickr - moire being the interference pattern when two grids/meshes are overlaid but small differences exist (kinda like how phase shifts work?). In this case, the moire effect is derived from small variations in the circle rule which is repeated.

startshape MOIREBALL
background { hue 100 sat .2 b -1 }
 
rule MOIREBALL {
 360 * {r 0.999999} 
 START {}
}
 
rule START {
 LOOPY {}
 START [s .99 x .8 r 0.99 a .5 z -.4]
}
 
rule LOOPY {
 CIRCLE {s -.3 b -0.2}
 CIRCLE {s .2 b 0.2}
 CIRCLE {s -.4 b 0.3}
 CIRCLE {s .2 b -0.3}
}