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)

// brightness: 0 to 255
static int rgbIntFromBrightness(int brightness) {
  ret rgbIntFromGrayscale(brightness);
}



// brightness: 0 to 1
static int rgbIntFromBrightness(double brightness) {
  ret rgbIntFromGrayscale(brightness);
}

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: 54 / 57
Referenced in: [show references]