Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

11
LINES

< > BotCompany Repo | #1035230 // shrinkRectBottomAndRight

JavaX fragment (include)

static Rect shrinkRectBottomAndRight(Rect r, int pixels default 1) {
  ret shrinkRectBottomAndRight(pixels, pixels, r);
}

static Rect shrinkRectBottomAndRight(int x, int y, Rect r) {
  ret Rect(r.x, r.y, r.w-x, r.h-y);
}

static Rect shrinkRectBottomAndRight(Rect r, int x, int y) {
  ret shrinkRectBottomAndRight(x, y, r);
}

Author comment

Began life as a copy of #1026938

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1035230
Snippet name: shrinkRectBottomAndRight
Eternal ID of this version: #1035230/3
Text MD5: c3615d42995483f1b2f93e6f0e347c63
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-06-24 00:40:37
Source code size: 336 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 70 / 90
Version history: 2 change(s)
Referenced in: [show references]