var script =initScript({ name:"test colors", description:"This is the description", author:"cedo" })script.onRender2D(function (event) { var colors =client.getClientColors() var middleColor =render.interpolateColors(colors[0], colors[1],0.5) render.drawGradientRoundedRect(300,300,100,100,6, middleColor, colors[0], colors[1], middleColor)})