var paper_botonera = Raphael("base",985,640); var plate2 = paper_botonera.rect(0,0,985,640,8); plate2.attr({fill:"#000","stroke-width":0}); plate2.attr({"stroke":"transparent","stroke-width":0}); plate2.attr("fill", "135-" + color_i + "-" + color_f);