Libraryless. Click here for Pure Java version (1149L/9K/32K).
!752 p { // Area I want to point to Rectangle r = new Rectangle(0, screenHeight()-40, 72, 40); int midX = r.x+r.width/2, midY = r.y+r.height/2; int inset = 20; new L<JWindow> windows; BufferedImage img = loadImage2("#1005616"); addIfNotNull(windows, freeFloatingAnimation("#1005616", r.x+r.width+inset, midY-img.getHeight()/2)); img = loadImage2("#1005615"); addIfNotNull(windows, freeFloatingAnimation("#1005615", midX, r.y-inset-img.getHeight())); img = loadImage2("#1005618"); addIfNotNull(windows, freeFloatingAnimation("#1005618", r.x-inset-img.getWidth(), midY-img.getHeight()/2)); img = loadImage2("#1005617"); addIfNotNull(windows, freeFloatingAnimation("#1005617", midX, r.y+r.height+inset)); print("Got " + n(l(windows), "windows")); }
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1005627 |
Snippet name: | Test freeFloatingAnimation |
Eternal ID of this version: | #1005627/1 |
Text MD5: | d47d191293b1d7d0473c823917ec39f5 |
Transpilation MD5: | a2ab0a4dcb61a565707ec519b5121a11 |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-11-30 13:45:50 |
Source code size: | 799 bytes / 20 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 483 / 524 |
Referenced in: | #1005629 - pointArrowsToArea - show (up to) 4 animated arrows on screen pointing to an area |