add button smaller size
@@ -20,7 +20,7 @@ def prepare_scoreentry(scale, color):
number = YImage(scoreentry + str(x), scale)
numbers_animation.append([])
tmp = imageproc.add_color(number.img, color)
- for size in range(95, 77, -3):
+ for size in range(95, 50, -5):
size /= 100
numbers_animation[-1].append(imageproc.change_size(tmp, size, size))
return numbers_animation
@@ -35,15 +35,15 @@ def prepare_inputoverlay(scale, color, index_c):
"""
yimg = YImage(inputoverlay, scale)
color = np.array(color)
- color[index_c] += 150
+ color[index_c] += 25
color[color > 255] = 255
- start, end, step = 97, 82, -3
- c_step = int(150*step/(end - start))
+ start, end, step = 95, 77, -5
+ c_step = int(25*step/(end - start))
color[index_c] -= c_step
button_frames = [yimg.img]
- for size in range(97, 82, -3):
+ for size in range(start, end, step):
size /= 100
yimg.change_size(size, size)
img = imageproc.add_color(yimg.img, color)
