static Color colorWithAlpha(Color c, double alpha) { ret new Color(c.getRed()/255f, c.getGreen()/255f, c.getBlue()/255f, (float) clampZeroToOne(alpha)); } static Color colorWithAlpha(double alpha, Color c) { ret colorWithAlpha(c, alpha); }
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1004269 |
Snippet name: | colorWithAlpha - 0=transparent, 1=opaque |
Eternal ID of this version: | #1004269/6 |
Text MD5: | c517dce6150c32ea0ea90de62ae58f13 |
Author: | stefan |
Category: | javax / imaging |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-08-20 09:33:05 |
Source code size: | 265 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 633 / 668 |
Version history: | 5 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |