1 | static Rectangle randomScreenPart(int w, int h) { |
2 | Dimension screen = screenSize(); |
3 | ret new Rectangle(random(screen.width-w), random(screen.height-h), min(w, screen.width), min(h, screen.height)); |
4 | } |
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: | 528 / 560 |
Referenced in: | [show references] |