Browse Source

Delete dynamic_background.py~

9and3r 11 năm trước cách đây
mục cha
commit
fd12e868bf
1 tập tin đã thay đổi với 0 bổ sung25 xóa
  1. 0 25
      mopidy_touchscreen/dynamic_background.py~

+ 0 - 25
mopidy_touchscreen/dynamic_background.py~

@@ -1,25 +0,0 @@
-import random
-
-class DynamicBackground():
-
-	def __init__(self):
-		self.current=[0,0,0]
-		self.target=[0,0,0]
-		for x in range(0, 3):
-			self.target[x]=random.randint(0,255)
-
-	def drawBackground(self,surface):
-		same = True
-		for x in range(0, 3):
-			if self.current[x]> self.target[x]:
-				self.current[x]=self.current[x]-1
-			elif self.current[x]<self.target[x]:
-				self.current[x]=self.current[x]+1
-			if(self.current != self.target):
-				same = False
-		if same:
-			for x in range(0, 3):
-				self.target[x]=random.randint(0,255)
-		surface.fill(self.current)
-
-