Recently I've been looking at Povray, pyprocessing, and cfdg (version 3.0) as tools for creating digital images. I have branched two separate blogs where I mainly explore jruby + processing and processing.py

Sunday, 17 June 2012

A custom shape for my pixelation library

Here is a che.cfdg file generated by my pixelation library, but edited to use wavy triangles in place of circles for the dots (makes for a slightly darker image). Definition of che shape is in data.cfdg (but that's a big file, with lots of dots!).
CF::Background = [b -1]

TTOP = sin(30)/sqrt(3)

startshape che

path triangle {              
    MOVETO(-0.5, -TTOP)
    loop 0, 3 [r 120]{ 
    CURVETO(0, -TTOP, -0.25, -0.1) 
    CURVETO(0.5, -TTOP, CF::Continuous)
    }
    CLOSEPOLY()
    FILL[]
}

shape dot{triangle[]}

import data.cfdg

No comments:

Post a Comment

Followers

Blog Archive

About Me

My photo
Pembrokeshire, United Kingdom
I have developed JRubyArt and propane new versions of ruby-processing for JRuby-9.1.5.0 and processing-3.2.2