index ce889944473ade7ce8074047214dd9c6d75f3f72..a8edb07c64c72d1309b3ce81f99c4896393fc337 100644 (file)
-import coloreffect\r
-\r
-class C(coloreffect.ColorEffect):\r
- def colmod(self,r,g,b):\r
+#!/usr/bin/env python
+import coloreffect
+
+class C(coloreffect.ColorEffect):
+ def colmod(self,r,g,b):
FACTOR=0.9
- r=int(round(max(r*FACTOR,0)))\r
- g=int(round(max(g*FACTOR,0)))\r
- b=int(round(max(b*FACTOR,0)))\r
- return '%02x%02x%02x' % (r,g,b)\r
-\r
-c = C()\r
-c.affect()
\ No newline at end of file
+ r=int(round(max(r*FACTOR,0)))
+ g=int(round(max(g*FACTOR,0)))
+ b=int(round(max(b*FACTOR,0)))
+ return '%02x%02x%02x' % (r,g,b)
+
+c = C()
+c.affect()