From dfecc84d4dfc3d09b5930daf48f897f1f4dbae45 Mon Sep 17 00:00:00 2001 From: Neil Date: Fri, 9 Sep 2016 22:28:03 +0200 Subject: [PATCH] Use multiply transform --- tabakrolletjie/scenes/day.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/tabakrolletjie/scenes/day.py b/tabakrolletjie/scenes/day.py index cf27859..fc79ffc 100644 --- a/tabakrolletjie/scenes/day.py +++ b/tabakrolletjie/scenes/day.py @@ -11,12 +11,11 @@ from ..obstacles import ObstacleManager from ..events import SceneChangeEvent from ..utils import debug_timer from ..loader import loader -from ..transforms import Overlay +from ..transforms import Overlay, Multiply from ..constants import SCREEN_SIZE, FONTS from ..widgets import ImageButton from ..turnip import Turnip, TurnipInvalidPosition -from ..transforms import Overlay class DayScene(BaseScene): @@ -48,10 +47,10 @@ class DayScene(BaseScene): pos=(50, SCREEN_SIZE[1] - 40)), ImageButton('32', 'spotlight.png', name='blue_spotlight', pos=(100, SCREEN_SIZE[1] - 40), - transform=Overlay(colour=(0, 0, 255, 128))), + transform=Multiply(colour=(0, 0, 255, 255))), ImageButton('32', 'spotlight.png', name='red_spotlight', pos=(150, SCREEN_SIZE[1] - 40), - transform=Overlay(colour=(255, 0, 0, 128))), + transform=Multiply(colour=(255, 0, 0, 255))), ImageButton('32', 'default_cursor.png', name='reset tool', pos=(SCREEN_SIZE[0] - 50, SCREEN_SIZE[1] - 40)), ] @@ -106,11 +105,13 @@ class DayScene(BaseScene): elif self._tool == 'red_spotlight': self._set_cursor( 'spotlight', - transform=Overlay(colour=(255, 0, 0, 128))) + transform=Multiply( + colour=(255, 0, 0, 172))) elif self._tool == 'blue_spotlight': self._set_cursor( 'spotlight', - transform=Overlay(colour=(0, 0, 255, 128))) + transform=Multiply( + colour=(0, 0, 255, 172))) return if self._tool == "seed": if self._seeds > 0: -- 2.34.1