Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

20
LINES

< > BotCompany Repo | #1005627 // Test freeFloatingAnimation

JavaX source code [tags: use-pretranspiled] - run with: x30.jar

Libraryless. Click here for Pure Java version (1149L/9K/32K).

1  
!752
2  
3  
p {
4  
  // Area I want to point to
5  
  Rectangle r = new Rectangle(0, screenHeight()-40, 72, 40);
6  
  int midX = r.x+r.width/2, midY = r.y+r.height/2;
7  
  
8  
  int inset = 20;
9  
  
10  
  new L<JWindow> windows;
11  
  BufferedImage img = loadImage2("#1005616");
12  
  addIfNotNull(windows, freeFloatingAnimation("#1005616", r.x+r.width+inset, midY-img.getHeight()/2));
13  
  img = loadImage2("#1005615");
14  
  addIfNotNull(windows, freeFloatingAnimation("#1005615", midX, r.y-inset-img.getHeight()));
15  
  img = loadImage2("#1005618");
16  
  addIfNotNull(windows, freeFloatingAnimation("#1005618", r.x-inset-img.getWidth(), midY-img.getHeight()/2));
17  
  img = loadImage2("#1005617");
18  
  addIfNotNull(windows, freeFloatingAnimation("#1005617", midX, r.y+r.height+inset));
19  
  print("Got " + n(l(windows), "windows"));
20  
}

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: 484 / 525
Referenced in: [show references]