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

11
LINES

< > BotCompany Repo | #1035477 // rgbIntFromBrightness - synonym of rgbIntFromGrayscale

JavaX fragment (include)

1  
// brightness: 0 to 255
2  
static int rgbIntFromBrightness(int brightness) {
3  
  ret rgbIntFromGrayscale(brightness);
4  
}
5  
6  
7  
8  
// brightness: 0 to 1
9  
static int rgbIntFromBrightness(double brightness) {
10  
  ret rgbIntFromGrayscale(brightness);
11  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 2 computer(s): mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1035477
Snippet name: rgbIntFromBrightness - synonym of rgbIntFromGrayscale
Eternal ID of this version: #1035477/1
Text MD5: ea1177ee8d6271d2324ef9388605287c
Author: someone
Category:
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-05-22 22:02:33
Source code size: 237 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 117 / 124
Referenced in: [show references]