At runtime, i need a thing to run to make a list of all colors locations in my .bmp type image so that then they can change the colors of it all, even all to the same thing, then be able to change it back to the correct colors, after having changed them, because the colors all start different it can only differentiate between the different pieces at the begginning because of that fact.
That is the way i have decided to take this, since making icons for each different color would not really be feasible for this large a project.
--What i mean by this is, i wanna make a list, and in that list it will have each pixels color + its location in the image, i want to use that list to change the colors of everything in the image.
When the color changes, each changed color will be linked to another variable defined at runtime.
Everytime a color changes, if its already changed, it uses the base color to figure out what should be changed, just in case you change two different things to the same color, so that it can differentiate between the two different objects on the map.
ID:162976
Oct 30 2007, 3:51 pm (Edited on Oct 30 2007, 4:07 pm)
|
|
Oct 31 2007, 10:07 am
|
|
Why would you want variables for each pixel...? If you want to change all the colors at once equally, MapColors() is what you're looking for. Or rgb().
|
In response to Kaiochao2536
|
|
not vars, one or two lists including all the info because if they change two colors to the same color, it wont be able to differentiate between the two seperate things.
the image is greater than 32*32 and im not just changing one objects color, im trying to change it based off of the original colors, and where they were at on the bigger .bmp image, swapping out everything that was originally of a color, because if two things are black i dont wanna become black, it needs a way to differentiate between them. hence the one or two vars, holding all info for the image. is there a way to do this? --I am trying to make the program differentiate the colors in the .bmp image to a list, maybe two, in such a way so if a color is changed to the same thing it can use its basecolor to change what it is i need changed, the reason for this, is the img is greater than 32*32 and overlaps multiple squares, but they also need to be able to change the colors on them even if they make two colors the same, so making all black in an icon wont work if they make something else black, hence the one or two list vars holding all the original colors things. i will have to have about 6 other variables containing the original color information for it which i know, which is why i cant really use the other two ways. at least, i dont think i can trying to use it in this manner. i was hoping for TOM to answer me, and not someone who can not really understand me. |
In response to FallingLegend
|
|
You could just make vars for any object or turf, and change the colors based on that. You can always revert back to the original icon by doing this: icon=initial(icon) .PNGs are better than .BMPs and are what .DMI files are based on. You can't expect Tom to reply to every post you make. There are many developers on BYOND that can help you. |
In response to Kaiochao2536
|
|
I dont get what your saying for me to do, and i dont think you do either, thats why i wanted tom to respond instead.
I want to change a big img, pixel by pixel. |
In response to FallingLegend
|
|
Make a new icon :/
What's so hard about that? |
In response to Kaiochao2536
|
|
i want code to change it pixel by pixel for me, is there a way to do that?
|
In response to FallingLegend
|
|
You could, but it'd be a lot of work. There are icon procs on drawing lines, rectangles, stuff like that.
Or you could look up MapColors() if you want an advanced way of recoloring. |
In response to Kaiochao2536
|
|
i cant use mapcolors, im trying to make it so i change all the red in an icon to say maybe blue, but i want it so if i change something to blue and something else is blue, without changing it to the default, i can change that blue back to red.
unless i could default it, and have a variable list hold all the changes to it. and then make those changes apply to the new icon. in any case, i need an example use of both RGB() and MapColors() in an img bigger than 32*32 making the image update in all squares. |
In response to FallingLegend
|
|
I think there's something to make it in all squares in BigAtom or whatever. But I'm not sure.
What I'm mostly sure about is that SwapColor() or something like that is a proc to swap colors. And if you want to change it back, read my previous post. Hint: initial() |