populacja ekosystem biosfera organ organizm molekuła komórka

29  Download (0)

Pełen tekst

(1)
(2)

molekuła komórka

organ

organizm

populacja ekosystem

biosfera

(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)

Set the colour of the houses surrounding person 12:

ask turtles 12 [

ask neighbors4 with [ ptype = "house" ] [ set pcolor blue ] ]

for (int i=0; i<turtles.size(); i++) { // Loop over all people if (turtles.get(i).getID() == 12 ) { // Find person 12

for (int j=0; j<houses.size(); j++) { // Loop over all houses

if ( <house next to turtle> ) { // Work out house/person position house.setColour(blue); // Set the house colour

} } } }

(11)
(12)
(13)
(14)
(15)

(16)
(17)
(18)
(19)
(20)
(21)
(22)

(23)
(24)
(25)
(26)

(27)

(28)
(29)

Obraz

Updating...

Cytaty

Powiązane tematy :