Yo is there an extension that has a Boolean that senses if a sprite touches a color?

i have a similar question.
Is there a way to detect if a sprite has a certain color in its image and return a boolean?
Like a “If ‘image’ has color 1 then …” kinda deal
this is the code i have so far