Hyluss

dark and light colors

Jul 26th, 2019
193
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.39 KB | None | 0 0
  1.                     //if (color.r * 0.2126 + color.g * 0.7152 + color.b * 0.0722 > 255 / 2)
  2.                     //{
  3.                     //    Debug.Log("Dark");
  4.                     //    //dark color
  5.                     //}
  6.                     //else
  7.                     //{
  8.                     //    Debug.Log("Light");
  9.                     //    //light color
  10.                     //}
Comments
  • User was banned
Add Comment
Please, Sign In to add comment