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

6
LINES

< > BotCompany Repo | #1015008 // drawRoundedBox

JavaX fragment (include)

import java.awt.geom.*;

static void drawRoundedBox(Graphics2D g, int x, int y, int w, int h, int roundness, Color color) {
  g.setColor(color);
  g.draw(new RoundRectangle2D.Double(x, y, w, h, roundness, roundness));
}

Author comment

Began life as a copy of #1015004

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: #1015008
Snippet name: drawRoundedBox
Eternal ID of this version: #1015008/3
Text MD5: 070d6b0c3da0ba673e010b656c7f0f66
Author: stefan
Category: javax / imaging
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-05-06 23:13:25
Source code size: 224 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 452 / 472
Version history: 2 change(s)
Referenced in: [show references]