CanvasRenderer drawing update
A minor visual improvement for CanvasRenderer
s drawing toroidal Environment
s — an Agent
close to one of the borders (top, bottom, left, right), whose shape extends beyond the border will now also be drawn on the opposite side of the canvas.
Example:
- The
Agent
located at (0, 0) would previously only be drawn in the upper-left. Now, with theEnvironment
wrapping around from left to right and top to bottom, it gets drawn in all four corners. Non-toroidalEnvironment
s will still draw the image on the left.