Libraryless. Click here for Pure Java version (110L/1K).
1 | static int blendRGBInts(double bish, int a, int b) { |
2 | ret blendRGBInts(a, b, bish); |
3 | } |
4 | |
5 | static int blendRGBInts(int a, int b, double bish) { |
6 | bish = normalizeTo0to1(bish); |
7 | ret rgbInt( |
8 | blend(rgbRed(a), rgbRed(b), bish), |
9 | blend(rgbGreen(a), rgbGreen(b), bish), |
10 | blend(rgbBlue(a), rgbBlue(b), bish)); |
11 | } |
Began life as a copy of #1007920
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1035297 |
Snippet name: | blendRGBInts - no alpha |
Eternal ID of this version: | #1035297/1 |
Text MD5: | 82264d12c64f4079bcab9e770a946897 |
Transpilation MD5: | d0b7603e95c28ced988c4ef5d6cdca99 |
Author: | stefan |
Category: | javax / imaging |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-04-29 03:16:47 |
Source code size: | 322 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 164 / 214 |
Referenced in: | [show references] |