# | Line 91 | Line 91 | linterp(t,p0,p1) : (1-t)*p0 + t*p1; | |
---|---|---|
91 | ||
92 | noop(v) = v; | |
93 | clip(v) = bound(0,v,1); | |
94 | < | noneg(v) = max(0,v); |
95 | < | red(r,g,b) = r; |
96 | < | green(r,g,b) = g; |
97 | < | blue(r,g,b) = b; |
94 | > | noneg(v) = if(v,v,0); |
95 | > | red(r,g,b) = if(r,r,0); |
96 | > | green(r,g,b) = if(g,g,0); |
97 | > | blue(r,g,b) = if(b,b,0); |
98 | grey(r,g,b) = .3*r + .59*g + .11*b; | |
99 | clip_r(r,g,b) = bound(0,r,1); | |
100 | clip_g(r,g,b) = bound(0,g,1); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |