As you draw your shape, you will also see it in five smaller sizes in the five preview areas found near. Every time that statement is evaluated, pcolor is compared to a random one-of the list generated by remove 65 base-colors- it is not checking to see if the pcolor is found within that group. Color can be represented either as a NetLogo color (a single number), or an RGB color (a list of 3 numbers or 4 numbers with transparency). face one-of patches with pcolor red fd 1 although you should do some exception handling because if there is not a patch of that color you will get a 'FACE expected input to be an agent but got NOBODY instead. environment, have variables associated with them, so you can evaluate an expression like color. To change its color, click on the new color. And I think I'm complicating the code and the result is not coming out.I think you're more or less there, it's just the if pcolor = one-of remove 65 base-colors that is problematic. Instead of the origin patch (0,0) being in the center of the world. I'm trying more what remains are all in white. This model was used to generate the color chart in the NetLogo User Manual. If you print show max list 0 shade-value, you can see, that the max is surprisingly 0. In order to better differentiate pens and if one is certain that the number of pencils will remain low, NetLogo's included color list (base-colors). A color can be number in the range 0 to 140, with the exception of 140 itself. I have 31 turtle profiles and I would like each of the turtles to be a yellow color. If you add some lines into the make-nl-color-shade2 reporter, that show s the value of the variables, you can notice that show shade-value shows 0 for all turtles. NetLogo represents colors in different ways. I'm trying to create a yellow color gradient for the turtles. The term pcolor is a NetLogo variable that sets the color of a patch.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |