Larger Draw Gauge

I have some questions about the default draw_gauge

#-------------------------------------------------------------------------- # * Draw Gauge # rate : Rate (full at 1.0) # color1 : Left side gradation # color2 : Right side gradation #-------------------------------------------------------------------------- def draw_gauge(x, y, width, rate, color1, color2) fill_w = (width * rate).to_i gauge_y = y + line_height - 8 contents.fill_rect(x, gauge_y, width, 6, gauge_back_color) contents.gradient_fill_rect(x, gauge_y, fill_w, 6, color1, color2) endright here. I tried to use it on a custom window I made however, the gauge is so small, I want a larger type of gauge. How can I make a fat gauge for example?
change the 6 to a higher number
if you checked the help file, fill_rect's parameters are x,y,width,height,color or rect,color


in this case it's clearly the first set of parameters... so just modify the height part, as Josh pointed out, it's the part where it says 6


when you have queries about the default methods, a look at the help file can help you a lot. 🙂

Original thread: https://forums.rpgmakerweb.com/threads/larger-draw-gauge.24886/