I am a beginner using python so there are probably gonna be a lot of stupid errors. basically i'm trying to do a png reader that prints the rgb value of every pixel of the png, and "filter" the rgb color "85, 115, 184". Idk what i'm doing wrong. Thanks in advance
from PIL import Image
im = Image.open('x.png', 'r')
pix_val = list(im.getdata())
if condition:
pix_val != (85, 115, 184),
print (pix_val)
return
else:
pix_val = (85, 115, 184),
break