use white instead of shades of gray
This commit is contained in:
parent
c8ea3db3d7
commit
211fca42f0
1 changed files with 4 additions and 3 deletions
|
@ -89,8 +89,9 @@ class Audio(gst.Pipeline):
|
|||
height = int((p * self.tile_height) / 256) * 2
|
||||
crop = int((self.tile_height-height) / 2)
|
||||
if p: p += 20
|
||||
p = (p, p, p, 255)
|
||||
|
||||
color = (p, p, p, 255)
|
||||
color = (255,255,255,255)
|
||||
|
||||
if start:
|
||||
end = self.tile_height - crop
|
||||
else:
|
||||
|
@ -98,7 +99,7 @@ class Audio(gst.Pipeline):
|
|||
end = int(self.tile_height/2)
|
||||
#for i in range(0, self.tile_height):
|
||||
for i in range(start, end):
|
||||
self.tiles[tile].putpixel((tilePos, i), p)
|
||||
self.tiles[tile].putpixel((tilePos, i), color)
|
||||
#left
|
||||
pixel = np.asarray(self.left[:samples_per_pixel])
|
||||
self.left = self.left[samples_per_pixel:]
|
||||
|
|
Loading…
Reference in a new issue