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

8
LINES

< > BotCompany Repo | #1014982 // renderBackgroundPlusCircles - TODO: could just call renderOn()!?

JavaX fragment (include)

1  
static BufferedImage renderBackgroundPlusCircles(int w, int h, BackgroundPlus<CircleWithColor> s) {
2  
  BufferedImage bi = newBufferedImage(w, h, toColor(s.background));
3  
  Graphics2D g = imageGraphics(bi);
4  
  for (CircleWithColor e : s.things)
5  
    fillCircle(g, e.center.x, e.center.y, e.r, toColor(e.color));
6  
  g.dispose();
7  
  ret bi;
8  
}

Author comment

Began life as a copy of #1014969

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: #1014982
Snippet name: renderBackgroundPlusCircles - TODO: could just call renderOn()!?
Eternal ID of this version: #1014982/5
Text MD5: 424ee852eca3384eba5da00d42767549
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-02-05 02:49:15
Source code size: 340 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 449 / 461
Version history: 4 change(s)
Referenced in: [show references]