aboutsummaryrefslogtreecommitdiff
path: root/pixelmappers
diff options
context:
space:
mode:
authorGravatar rcoh <rcoh@mit.edu>2011-01-24 22:44:16 -0500
committerGravatar rcoh <rcoh@mit.edu>2011-01-24 22:44:16 -0500
commit2019fb2895237aa9d86450daaf6d90831189fc13 (patch)
tree6dd9de45c5c2994c0a6aad2aa808092abb8f99bd /pixelmappers
parent39de2bc415e6dc02c68018655962197a38207718 (diff)
Some new stuff. Fixed a bug where screen responses weren't being synchronized. Now they are.
Added XYMove to do a bouncy behavior.
Diffstat (limited to 'pixelmappers')
-rw-r--r--pixelmappers/GaussianMapper.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pixelmappers/GaussianMapper.py b/pixelmappers/GaussianMapper.py
index 686ebcd..c82f243 100644
--- a/pixelmappers/GaussianMapper.py
+++ b/pixelmappers/GaussianMapper.py
@@ -4,6 +4,8 @@ class GaussianMapper(PixelMapper):
def mappingFunction(self, eventLocation, screen):
returnPixels = [] #TODO: consider preallocation and trimming
[x,y] = eventLocation
+ potentialPixels = screen.pixelsInRange(x-self.CutoffDist, \
+ x+self.CutoffDist)
for (x,pixel) in screen.pixelsInRange(x-self.CutoffDist, \
x+self.CutoffDist):
pixelDist = Geo.dist(pixel.location, eventLocation)