How to read multiple sensors in Processing using Arduino I2C

like when you put

translate(mouseX, mouseY)

it follows the mouse on screen i want it to follow the sensors like that and do the rotation is that possible?