1 | static Color drawThoughtCircle_defaultColor = Color.white; |
2 | |
3 | static void drawThoughtCircle(BufferedImage bg, BufferedImage img, double x, double y) { |
4 | // TODO: crop to certain size |
5 | BufferedImage circle = cutImageToCircle(img_addBorder(cutImageToCircle(img), drawThoughtCircle_defaultColor, 10)); |
6 | x -= circle.getWidth()/2; |
7 | y -= circle.getHeight()/2; |
8 | drawImageOnImage(circle, bg, iround(x), iround(y)); |
9 | } |
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: | #1007293 |
Snippet name: | drawThoughtCircle - draws on bg |
Eternal ID of this version: | #1007293/4 |
Text MD5: | e6b423acb8b6311ce988afad1295aeb2 |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-09-14 03:58:55 |
Source code size: | 418 bytes / 9 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 488 / 534 |
Version history: | 3 change(s) |
Referenced in: | [show references] |