1 | static int blend(int x, int y, double yish) { |
2 | double xish = 1-yish; |
3 | ret (int) (x*xish+y*yish); |
4 | } |
5 | |
6 | static double blend(double x, double y, double yish) { |
7 | double xish = 1-yish; |
8 | ret x*xish+y*yish; |
9 | } |
Began life as a copy of #1005551
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: | #1006776 |
Snippet name: | blend |
Eternal ID of this version: | #1006776/4 |
Text MD5: | 9985beabc97fc54c71a72c97e80fef20 |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-04-17 15:16:48 |
Source code size: | 213 bytes / 9 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 512 / 551 |
Version history: | 3 change(s) |
Referenced in: | [show references] |