Transpiled version (3347L) is out of date.
static Rect growRect(int pixels, Rect r) { ret growRect(r, pixels); } static Rect growRect(double x, double y default x, Rect r) { ret growRect(r, x, y); } static Rect growRect(Rect r, int pixels default 1) { ret new Rect(r.x-pixels, r.y-pixels, r.w+pixels*2, r.h+pixels*2); } static Rect growRect(Rect r, int x, int y) { ret new Rect(r.x-x, r.y-y, r.w+x*2, r.h+y*2); } static Rect growRect(Rect r, double x, double y default x) { ret new Rect(iround(r.x-x), iround(r.y-y), r.w+iround(x*2), r.h+iround(y*2)); }
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, sawdedvomwva, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1006163 |
Snippet name: | growRect |
Eternal ID of this version: | #1006163/8 |
Text MD5: | 2bede63d28c1b8a7306b92c928eabc2e |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-02-15 17:51:02 |
Source code size: | 544 bytes / 19 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 579 / 679 |
Version history: | 7 change(s) |
Referenced in: | [show references] |