Say I have a currently existing object that has its own icon and icon_state set, I'm wanting to take another 'blank'(white) colored icon and get the primary color from the object and apply it to the icon in some fashion. Thought about just blending the two together but I dont want to instantiate loads of /icon's and wait for them to get GC'ed as the codebase i'm working with is already not that fast. What would be the best way to go about this?
|
In response to Kaiochao
|
|
Kaiochao wrote:
atom.color = "[rgb]" Fast, easy, efficient multiplicative color. Yes I know you can change the color like that but I want to find and use the color of an already existing atom, and then apply that color to a short lived object. Maybe i really am bad at explaining what I want to know. |
In response to Gokussj99
|
|
Gokussj99 wrote:
GetPixel It just might, how bad it is performance wise? |
In response to Pomf123
|
|
Pomf123 wrote:
Gokussj99 wrote: GetPixel It just might, how bad it is performance wise? Not entirely sure but it might be your best bet due to built in functions usually having better performance vs soft coded stuff in byond |
Fast, easy, efficient multiplicative color.
"white" or "#ffffff" is default, while "black" or "#000000" will make every visible pixel black.