sorry another one

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
ladykassie
Posts: 17
Joined: Tue Dec 13, 2005 4:36 am

sorry another one

Post by ladykassie »

how do I make the cross bigger and randomize this as well

startshape SCENE
background { b -1 }

rule SCENE { NEURAL { hue 70 sat 0.9 b 0.9 }}




rule NEURAL {

TRIANGLE { s -0.5 10 x 3 y -0.1 r -90}
TRIANGLE { s -0.5 10 x 3 y -0.1 r -180}
TRIANGLE { s -0.5 10 x 3 y -0.1 r -0}
TRIANGLE { s -0.5 10 x 3 y -0.1 r 90}
Swirl { x 3 r 90 s 0.60 }
LINE {x 1 r 1.5 size 0.9953}
}
rule LINE {
SQUARE {size 0.8}
LINE {x 1 r 1.5 size 0.9953}
}

rule Swirl {
Line { }
Swirl { x 3 r 90 s 0.8 }

}



thanks!

User avatar
MtnViewJohn
Site Admin
Posts: 882
Joined: Fri May 06, 2005 2:26 pm
Location: Mountain View, California
Contact:

Post by MtnViewJohn »

The easiest way to make the cross bigger is to shrink the spiral. The whole scene will then scale up in size and the cross will be bigger:

Code: Select all

rule NEURAL { 

TRIANGLE { s -0.5 10 x 3 y -0.1 r -90} 
TRIANGLE { s -0.5 10 x 3 y -0.1 r -180} 
TRIANGLE { s -0.5 10 x 3 y -0.1 r -0} 
TRIANGLE { s -0.5 10 x 3 y -0.1 r 90} 
Swirl { x 3 r 90 s 0.60 } 
LINE {x 1 r 1.5 size 0.3} // The size is smaller now
} 
You can use the same tricks from my other post to randomize this one.

User avatar
MtnViewJohn
Site Admin
Posts: 882
Joined: Fri May 06, 2005 2:26 pm
Location: Mountain View, California
Contact:

Post by MtnViewJohn »

Or you could randomize the spiral itself by using this

Code: Select all

rule LINE 0.01 { 
    LINE { flip 0 } 
    LINE {}
}
or just this

Code: Select all

rule LINE 0.01 { 
    LINE { flip 0 }
}
or both.

ladykassie
Posts: 17
Joined: Tue Dec 13, 2005 4:36 am

Post by ladykassie »

sweet..

thank you so much!

Post Reply