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

13
LINES

< > BotCompany Repo | #1007289 // Show Central Circle [WORKS]

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

Uses 3874K of libraries. Click here for Pure Java version (6039L/43K/152K).

1  
!7
2  
3  
p-pretty /* although that's debatable given the detailed person */ {
4  
  final BufferedImage img = loadImage2(#1007291);
5  
  showFrame(jcanvas(func(int w, int h) {
6  
    BufferedImage bg = renderTiledBackground(#1007195, w, h);
7  
    BufferedImage circle = cutImageToCircle(img_addBorder(cutImageToCircle(img), Color.white, 10));
8  
    int x = (w-circle.getWidth())/2;
9  
    int y = (h-circle.getHeight())/2;
10  
    drawImageOnImage(circle, bg, x, y);
11  
    ret bg;
12  
  }));
13  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1007289
Snippet name: Show Central Circle [WORKS]
Eternal ID of this version: #1007289/9
Text MD5: 40b05343448e9b4a6a7c8aafa437cc02
Transpilation MD5: dc32ccef67a6af9ca901abe1f8a31a14
Author: stefan
Category: javax / gui
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-03-14 23:10:13
Source code size: 473 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 629 / 709
Version history: 8 change(s)
Referenced in: [show references]