Как изменить цвет заливки штриха (RGB) в python

как изменить цвет заливки штриха (RGB) в python

Показывает ошибку: TypeError: color должен быть int или одноэлементным кортежем

from PIL import Image
from PIL import ImageDraw
from PIL import ImageFont, ImageOps
label2 = "VIKRAM"
font = ImageFont.truetype('D:/vikram/pythonProject/fonts/B5______.TTF', 120)
line_height = sum(font.getmetrics())
fontimage2 = Image.new('L', (font.getsize(label2)[0], line_height))
ImageDraw.Draw(fontimage2).text((0, 0), label2, stroke_width=10, stroke_fill=(0, 0, 0), fill=255, font=font)-------->stroke fill in (RGB)
fontimage2 = fontimage2.rotate(330, resample=Image.NEAREST, expand=True)
orig = Image.open('F:/desktop/sunshine girl/PSI Sunshine Theme Girl Personalized Eye Mask.png')
orig.paste((220, 32, 37), box=(400, 200), mask=fontimage2)
orig.show()

Вернуться на верх