Give Gauges more depth

I'm trying to pimp my health, mana and TP Gauges a bit. What I'd like for them is to become a bit darker towards the edges.


I tried to recolor the red HP fields in the window.png (see screenshot) and was hoping, it would simply stretch that effect accross the whole HP Gauge. Yet nothing happens. Does it just not work that way? Is there another way to achieve this effect? 


Thanks for your help!

health bars.PNG
You may need to edit the game's code. Yanfly's Core Plug-in may help. http://yanfly.moe/2015/10/09/yep-1-core-engine/
To elaborate a bit on this, the color field in the windowskin file only represent one color each. (I'm not sure where exactly the color is taken from.)


The gauges combine two colors: HP uses 20 and 21, MP 22 and 23, TP 28 and 29. You can change the colors in the windowskin file or choose different color numbers from the windowskin with Yanfly's Core Engine (linked above), but the gradient from left to right will stay the same. If you want to change that, you will need a different plugin. Moghunter has an HP Gauge Plugin that allows you to use pictures for your gauges. I haven't found something for simple gradients yet, but I could have a look at the code for that and see if I can come up with a small plugin.


@HasuHasi This changes the gradient to a vertical one with the darker color towards the edges. It somewhat works with Yanfly's Core Engine if you place this plugin below Yanfly's, but it overrides some of Yanfly's functionality (gauge height and outline).

Code:
_old_Window_Base_drawGauge = Window_Base.prototype.drawGauge;
Window_Base.prototype.drawGauge = function(x, y, width, rate, color1, color2) {
	var h = 6; // you can change this number if you want wider gauges
    var fillW = Math.floor(width * rate);
    var gaugeY = y + this.lineHeight() - (h + 2);
    this.contents.fillRect(x, gaugeY, width, h, this.gaugeBackColor());
    this.contents.gradientFillRect(x, gaugeY, fillW, h / 2, color1, color2, true);
	this.contents.gradientFillRect(x, gaugeY + h / 2, fillW, h / 2, color2, color1, true);
};
@LadyBaskerville Thank you very much, I'll tinker a bit around with it =) 

Original thread: https://forums.rpgmakerweb.com/threads/give-gauges-more-depth.72837/