static Rectangle randomScreenPart(int w, int h) { Dimension screen = screenSize(); ret new Rectangle(random(screen.width-w), random(screen.height-h), min(w, screen.width), min(h, screen.height)); }
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1005345 | 
| Snippet name: | randomScreenPart | 
| Eternal ID of this version: | #1005345/1 | 
| Text MD5: | 4f32b3e9e2b9febacea806fedb70a603 | 
| Author: | stefan | 
| Category: | javax / gui | 
| Type: | JavaX fragment (include) | 
| Public (visible to everyone): | Yes | 
| Archived (hidden from active list): | No | 
| Created/modified: | 2016-11-08 00:48:33 | 
| Source code size: | 204 bytes / 4 lines | 
| Pitched / IR pitched: | No / No | 
| Views / Downloads: | 779 / 806 | 
| Referenced in: | [show references] |