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

7
LINES

< > BotCompany Repo | #1015022 // fixRGB

JavaX fragment (include)

1  
static RGB fixRGB(RGB rgb) {
2  
  ret rgb == null ? null : RGB(limitBetween0and1(rgb.r), limitBetween0and1(rgb.g), limitBetween0and1(rgb.b));
3  
}
4  
5  
static RGB fixRGB(float r, float g, float b) {
6  
  ret RGB(limitBetween0and1(r), limitBetween0and1(g), limitBetween0and1(b));
7  
}

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: #1015022
Snippet name: fixRGB
Eternal ID of this version: #1015022/2
Text MD5: c1e50b1051941feb4eee301bcd31cef6
Author: stefan
Category: javax / imaging
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-05-07 01:24:47
Source code size: 273 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 339 / 377
Version history: 1 change(s)
Referenced in: [show references]