Guest User

Untitled

a guest
May 24th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. closure color mix(closure color a, closure color b, float t) {
  2. return (1.0 - t) * a + t * b;
  3. }
  4.  
  5. float inbounds(float value, float lower, float upper) {
  6. return (lower < value) && (upper > value);
  7. }
  8.  
  9. float threshold(float value, float lower, float upper) {
  10. return value * inbounds(value, lower, upper);
  11. }
Add Comment
Please, Sign In to add comment