My problem:
I am looking for a way (with code) to grab a specific colour in an image and change all the pixels with that colour to a different colour. For example:
Let's say I had a drawing of a 1971 Corvette.
What I want to do is grab every pixel with the red colour, and change it to another colour like maybe orange. What I tried:
I tried grabbing every pixel and using the map block to change every pixel with that colour to a new colour.
I can't seem to find the right way to do it though. Like what numbers go in the map (list ) block.
If anyone can help me, it would be greatly appreciated. Thank you very much in advance.
I can probably help.
If you want to change, say, ff0000 into ff7f00, (pure red into pure orange) do you want it to change, say, ff0100 into ff7f00? In other words, what do you want the tolerance to be?
Copy the costume (right-click on its picture in the Costumes tab and choose "duplicate"). Edit the copy, and use the paint can icon to floodfill the red parts to whatever color you want. Then you can switch between the two costumes.