blob: c0804763c299dc02187ff781b2eb348eff7f39d0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
import math
from operationscore.PixelEvent import *
from util.ColorOps import *
import util.Geo as Geo
class FadeIn(PixelEvent):
def state(self, timeDelay):
decay = math.sin(timeDelay/float(1000))
if timeDelay > 5000:
return None
if timeDelay > 2000 and timeDelay < 4000:
decay = 1
return multiplyColor(self.Color,decay)
|