Loading...
Processing Forum
Recent Topics
All Forums
Move this topic
Forum :
Share your Work
Programming Questions
Core Library Questions
Contributed Library Questions
Android Processing
Processing with Other Languages
Integration and Hardware
Library and Tool Development
Events and Opportunities
General Discussion
Sub forum :
Move this topic
Cancel
General Discussion
Other
brianat
text hover?
in
General Discussion
•
Other
•
8 months ago
How should I write a code that, when hovering over an ellipse, a bit of text is shown, and when I'm not hovering, it goes away?
1
Replies(2)
tfguy44
Re: text hover?
8 months ago
PFont myFont=createFont("Arial",12);
void setup(){
size(220,220);
textFont(myFont);
}
void draw(){
background(0);
noStroke();
fill(0,128,0);
ellipse(110,110,120,120);
if(dist(mouseX,mouseY,110,110)<60){
fill(255);
text("Boop!",mouseX-20,mouseY-10);
}
}
brianat
Re: Re: text hover?
8 months ago
Thank you! This is brilliant!
Leave a comment on tfguy44's reply
Change topic type
Topic Type :
Discussions
Questions
No of days :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Change topic type
Cancel
Link this topic
Provide the permalink of a topic that is related to this topic
Permalink
Save
Close
Reply to brianat's question
Top
Reply
{"z4106057":[25080000001970845],"z24297510":[25080000001970840,25080000001970847]}
Statistics
2
Replies
395
Views
0
Followers
Tags
Cancel
text
hover
Actions
Permalink
Related Posts
how do you load and display images ...
Rewrite text?
PDF Font export
Text Always Face Screen in 3D Envir...
how to convert fonts/text into curv...