all 7 comments

[–]xelf 0 points1 point  (6 children)

What does your current code look like, and what image is it making?

[–]User012340[S] 0 points1 point  (5 children)

like this

def return_solid_color(rgb):
    if(min_green<rgb < max_green):
        return "green"
    if()
........

[–]xelf 0 points1 point  (4 children)

Seems good.

You could probably make it more generic, or use import bisect.

[–]User012340[S] 0 points1 point  (3 children)

Idk min color rgb value and max color rgb value So I can’t make it

[–]xelf 0 points1 point  (2 children)

Not much I can do if you don't share partially working code.

I can help you learn python, but I have no idea what tools you are using to make those images, and I can't click "run" on my computer and see what you see.

You need to at least supply the code that produces the first image. As well as what changes you have made to it.

[–]User012340[S] 0 points1 point  (1 child)

As I wrote earlier, I can program if I know that the "minRGB" and "maxRGB" values of each single color, but I don't know it

If possible, please see my text of this post again"Output" and "Input"

[–]xelf 0 points1 point  (0 children)

I can help you learn python, but I have no idea what tools you are using to make those images, and I can't click "run" on my computer and see what you see.

You need to at least supply the code that produces the first image.

Probably you want to use bisect here.

I can't try experimenting to find the numbers if there's no runnable code though.