Good evening! I am using Pygame's Surface.get\_at() function below the character coordinates to check if the player is on a surface that is walk-able. I chose the color black (0, 0, 0) as walking surface, but Pygame sometimes returns (1, 0, 0) as the color, and thus, the player cannot stand on that surface. Is there some way to use a range of numbers as an int so that any color near black can be used as walking surface? Is there an easier way to do this? Here is the part of my program that I am working on:

```
groundcolor = disp.get_at((int(playerx), int(playery)-1))
    if groundcolor == black1 or groundcolor == black0:
        groundlim = int(playery)
        print(groundcolor)

    if groundcolor != black1 and groundcolor != black0:
        groundlim = 695
        if playery != 695:
            jumping = True
            print(groundcolor)

```

Note: black1 is (1,0,0) and black0 is (0,0,0). I did this just to attempt to fix my problem, but there are too many near-black colors to define them all.

Any other recommendations apart from my addressing question would be greatly appreciated. Thank you for your time.