from osr2mp4.ImageProcess.PrepareFrames.YImage import YImage


default_circle_size = 128


def prepare_hitcirclenumber(diff, scale, settings):
	"""
	:param diff:
	:param scale:
	:return: [PIL.Image]
	"""
	circle_radius = (54.4 - 4.48 * diff["CircleSize"]) * scale * 0.8
	hitcircle_number = []
	scale = circle_radius * 2 / default_circle_size
	scale *= 1.05
	for x in range(10):
		img = YImage("-{}".format(str(x)), settings, scale, prefix="HitCirclePrefix")
		hitcircle_number.append(img.img)
	return hitcircle_number, scale
