processing java screen wrap
void screenWrap(PVector position) {
if (position.x < 0){ //warp x
position.x += width;
} else {
position.x = position.x % width;
}
if (position.y < 0){ //warp y
position.y += height;
} else {
position.y = position.y % height;
}
}