Search This Blog

Menüü

Wednesday, 1 February 2012

contextfreeart

Joonistame programeerimise kaudu.
1. Tee järgi vähemalt 10 pilti

a.

startshape begin:

rule begin{
CIRCLE{}
}}

\\ katseta erinevad kujud SQUARE, CIRCLE, TRIANGLE

b.
startshape circles   rule circles {  CIRCLE { } circles { z -1 s .7 y .7 x -1.5 } circles { z -1 s .7 y .7 x 1.5 } 
\\ muuda arvud ja vaata mis toimub.

c.

startshape start   rule start {  CIRCLE  { s .5 b -1 z 1 }  walk { sat 1 b 1 h 120 } }   rule walk { CIRCLE { } walk { x .25 h .0005 } } rule walk { CIRCLE { } walk { x -.25 h .0005 } } rule walk { CIRCLE { } walk { y .25 h .0005 } } rule walk { CIRCLE { } walk { y -.25 h .0005 } }   rule walk 0.001 { CIRCLE  { s .5 b -1 } }
d.

startshape forest   rule forest {    moss { y -1 s 12 5 hue 100 sat .6 b .8 }    forestobject { }    forest { z -10 x 7 y 1 s .9 a -.1 }    forest { z -10 x -5 y 1.2 s .6 a -.1 } } rule forest {    moss { y -1 s 12 5 hue 100 sat .6 b .8 }    forestobject { }    forest {  z -10 x -10 y 1.1 s .9 a -.1}    forest { z -10 x 12 y 1.1 s .7 a -.1} } rule forest {    forest { y 1 } } rule forest .5 { }     rule moss {    CIRCLE { } }   rule forestobject { tree { hue 100 } }  // make a tree like above rule forestobject { }  // leave a piece of ground empty rule forestobject { TRIANGLE { s 3 } }  // another kind of object   rule tree {     CIRCLE { s .5 1.2 }     tree { s .97 y .3 r 1 sat .04 b .02} } rule tree .1 {      tree { flip 90 } } rule tree .4 {      tree { r 10 }      tree { r -30 s .6} }
Otsi internetist
vähemalt 5 pildi koodi muuda koodi sees 5 andmed ja postita oma blogisse:
  • alg kood
  • mis reas tegid muudatused
  • lõplik pilt

P.S.
http://www.contextfreeart.org/mediawiki/index.php/Download_page

No comments:

Post a Comment