daily pastebin goal
6%
SHARE
TWEET

Untitled

a guest Aug 7th, 2017 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     prop luma : float
  2.         get
  3.             return (_red + _green + _blue) / 3
  4.         set
  5.             diff : float = value - self.luma
  6.  
  7.             self._red += diff
  8.             self._green += diff
  9.             self._blue += diff
  10.  
  11.             self.luma = value
  12.             self.on_set(self)
RAW Paste Data
Top