action color_update {
color_plot <- plot_colors[land_use -1];
color_plot_soil <- soil_colors[soil_height];
loop i over: cells_list {
i.col <- plot_colors[int(i.plain)];
i.soil_col <- color_plot_soil;
i.cell_height <- soil_height;
}
}
The highlighted line does not work, and I am wondering how I can change the cell_height of the grid,
by calling the cells through another agent.
grid cells cell_width: 25 cell_height: 5 {
bool plain <- false;
init {
ask cells overlapping geometry(plains) {
plain <- true;
}
}
}
Thank you in advance for the help!
init {
// ask cells overlapping geometry(plains) {
if empty(plains overlapping self) {
plain <- true;
}
}
--
You received this message because you are subscribed to the Google Groups "GAMA" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gama-platfor...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/gama-platform/69c447cd-3e28-409b-9e5d-57fd4e494b1dn%40googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/gama-platform/f13bab4f-9453-4035-a37c-3a9fdbbc9ecbn%40googlegroups.com.