![]() |
setdrawpalette(str, int)
Has anyone actually tried to use this?
PHP Code:
|
The string is the array of color entries, not sure why it's labeled str.
The int is an index of that array; that index's color draws transparent. |
Can you give an example of where/how it's used by chance?
|
2 Attachment(s)
In the panel you just want to call the function. With my experiences, the color array is player colors ({"red", "green", etc) and the index will change the entire bg/transparent color.
color0, color1, so on and so on seem to effect each shade of color on the image you're using, starting with the darkest shade. So color0 does the darkest shade on the image, color1, next darkest, so on and so on. It seemed on some images the colors array didn't start effecting the image colors until color2. Also a thanks to Deas. We were both testing at once and he lead to things that got me to this, and I believe he got to the same conclusion right before I did anyways (he deserves the credit for this). Figured I'd share, since there is nothing really about this at all. PHP Code:
The script has changed, and I'm already off RC, but the images should show what it does well enough with the description I gave. |
screenshots?
|
Modified post.
|
One would use this sort of thing to recreate the default behavior of the outfit, where "white coat" in graphic can be remapped into a different color (eg, .colors[#]).
It would certainly be interesting if somebody recreated the default palette to include more parts to color the outfit (eg, skin, coat, shoes, belt, sleeves... collar, pants, bracers, elbows, hilt). |
Quote:
Each part of the bodies had to be an individual sprite though, which if im reading correctly, is essentially what cyril is doing anyway? |
Quote:
Quote:
Basically with shading, this won't work eventually bc there will be colors you need that graal doesn't have built in. |
I wasn't trying to imply that you can make some superbly shaded bodies or whatever and have some really outrageous customization.
But just taking body.png for example and adding green pants to it, and then using setdrawpalette in conjunction with that so that you can do something like a .colors[5] which would edit your character's pants color, or so. |
I know, I wasn't saying you were either. I was just explaining further for other people looking at this.
P.S. are you nastynas? |
All times are GMT +2. The time now is 03:10 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.