Page 1 of 1

Simple Color variation

Posted: Thu Apr 01, 2010 6:41 pm
by Sam Suan Chen
/* CFDG example */
# Simple Color variation
startshape Colorful

background { b -0.9 } # dark gray

rule Colorful
{6*{s .7 x .175 y .925 h 60} # shrink size, change position and color
{18*{x 1.1 r 20 h 20} # move, rotate, and change color
CIRCLE{b .9 sat .9} # default red (h 0), but brightness and saturation cannot be 0
}}

Simple Color variation 2

Posted: Thu Apr 01, 2010 7:03 pm
by Sam Suan Chen
/* CFDG example */

startshape Colorful2
background { b -0.9 } // dark gray

rule Colorful2
{ 5*{s .8 x 1 y 1 h 72} // thrink size, chage position and color
{ 4*{r 90 x 10} // rotate and move right
{ 10*{h 36 y 1} // change color and move up
CIRCLE{b 1 sat 1 s .9} // red circle
} } }

Simple Color variation 3

Posted: Thu Apr 01, 2010 7:47 pm
by Sam Suan Chen
/* CFDG example */

startshape Colorful3

background { b -0.9 } // dark gray
rule Colorful3
{fan r 100} # rotate
}
rule fan
{6*{s .7 x .175 y .925 b .5 sat .5} # shrink size, change position, brightness, and saturation
{10*{x 1.1 r 20 h 36} # move, rotate, and change color
CIRCLE{b .4 sat .4} # default red (h 0), but brightness and saturation cannot be 0
}}

Re: Simple Color variation

Posted: Mon Apr 05, 2010 7:46 am
by pakin
Of the three, I like Colorful2 the most.