|
well, I was loafing around the other day, and was thinking to myself, wouldn't it be nice if the Bodies would automatically shade themselves? I thought of all the possible methods this could be achieved, and here is the one I came up with
well, as you know, There are 5 colors + outline used in Body GFX, maybe some maths could be employed here, where COLOR 6 is 16 units darker than COLOR 0, COLOR 7 is 16 darker than COLOR 1, the color that it affects would be determined as so
ORIGINALCOLOR = PALCOLOR%6;
DARKEN= INT(PALCOLOR/6)*16;
If color 0 was 255,0,0 (RED), then color 6 would be 255-16,0,0; (Slightly darker RED), color 12 would be 255-32,0,0; and so on (the others are not changed because we can't go below 0, but under normal circumstances, they would be)
This way we can design bodies that will be able to do shading/gradients and still be able to choose our own colors for the bodies.
so, to determine which PAL# to use in order to do the shading we first would want the original color (in the following example, #C4 or 4, and the Degree we want it to be changed, 5)
PAL = OriginalColor + Degree*6
PAL = (4) + (5)*6;
if #C4 was white (255,255,255), then PAL34 would produce color (175,175,175) or a light-gray...
Sure, it would take much more effort to make a well shaded body, but the old bodies would still work, so more can be made to that style too, and using the shading effects would be *optional*
I hope I was able to explain this in depth enough for such a long post :o |