I want to create a solid colored background canvas of a given size, using the methods available with Ruby-Vips. Right now, I am able to do so, like this:
canvas = Vips::Image.black(600, 600).ifthenelse([0,0,0], [252, 186, 3])
However, it seems strange to have to create a black image, then apply color pixel by pixel in this way. Is there a better or a more efficient way of accomplishing this?