Interface 6
Sun Jan 07 2024 18:28:21 GMT+0000 (Coordinated Universal Time)
Saved by
@马丽
void setup() {
size(400, 400); // Set canvas size
}
void draw() {
background(220); // Set background color
// Display the coordinates of the mouse pointer
fill(0); // Set fill color to black
textSize(30); // Set the text size to 20 (you can adjust this number as needed)
text("MouseX: " + mouseX + " | MouseY: " + mouseY, 40, 40); // Display coordinates
}
content_copyCOPY
Comments