/* 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
Moderators: MtnViewJohn, chris, mtnviewmark
-
- Posts: 34
- Joined: Thu Mar 11, 2010 5:33 am
- Location: 龍潭 32545 Taiwan
- Contact:
Simple Color variation
- Attachments
-
- colorful.jpg (46.09 KiB) Viewed 63582 times
Last edited by Sam Suan Chen on Thu Apr 01, 2010 7:04 pm, edited 1 time in total.
-
- Posts: 34
- Joined: Thu Mar 11, 2010 5:33 am
- Location: 龍潭 32545 Taiwan
- Contact:
Simple Color variation 2
/* 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
} } }
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
- colorful2.jpg (69.79 KiB) Viewed 63579 times
-
- Posts: 34
- Joined: Thu Mar 11, 2010 5:33 am
- Location: 龍潭 32545 Taiwan
- Contact:
Simple Color variation 3
/* 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
}}
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
- colorful3.jpg (32.33 KiB) Viewed 63577 times
Re: Simple Color variation
Of the three, I like Colorful2 the most.