Simple Color variation

If you have a design you're proud of, share the cfdg file here. It's also a good place to ask for feedback and collaborate.

Moderators: MtnViewJohn, chris, mtnviewmark

Post Reply
Sam Suan Chen
Posts: 34
Joined: Thu Mar 11, 2010 5:33 am
Location: 龍潭 32545 Taiwan
Contact:

Simple Color variation

Post 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
}}
Attachments
colorful.jpg
colorful.jpg (46.09 KiB) Viewed 48970 times
Last edited by Sam Suan Chen on Thu Apr 01, 2010 7:04 pm, edited 1 time in total.

Sam Suan Chen
Posts: 34
Joined: Thu Mar 11, 2010 5:33 am
Location: 龍潭 32545 Taiwan
Contact:

Simple Color variation 2

Post 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
} } }
Attachments
yet another simple color variation
yet another simple color variation
colorful2.jpg (69.79 KiB) Viewed 48967 times

Sam Suan Chen
Posts: 34
Joined: Thu Mar 11, 2010 5:33 am
Location: 龍潭 32545 Taiwan
Contact:

Simple Color variation 3

Post 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
}}
Attachments
change brightness and saturation
change brightness and saturation
colorful3.jpg (32.33 KiB) Viewed 48965 times

User avatar
pakin
Posts: 43
Joined: Sat Apr 21, 2007 8:59 pm
Location: United States
Contact:

Re: Simple Color variation

Post by pakin »

Of the three, I like Colorful2 the most.

Post Reply