I am working on a model, where I need to change the texture of node to earth texture.
The initial texture is grass (See image). I tried using
node.setFillColor(sand);
But error pops up
You were almost right, but you need to start using code-complete for everything, this avoids you typing things AnyLogic does not understand.
Never type anything by yourself. Always use code-complete :)