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)

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

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: 359 / 378
Version history: 4 change(s)
Referenced in: [show references]