Guest User

Untitled

a guest
Jan 19th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.12 KB | None | 0 0
  1. float input = some_function(); // returns 0.0 to 1.0
  2. byte output = input * 255.0;
  3.  
  4. byte output = round(input * 255.0);
Add Comment
Please, Sign In to add comment