如何设置任意 HSLA 颜色而不是gray20
?
draw = Magick::Draw.new
draw.font_family = 'arial'
draw.pointsize = 12
draw.gravity = Magick::CenterGravity
draw.annotate(@canvas, size,size, x,y, text) { self.fill = 'gray20' }
另外,使用 gc.rectangle,如何设置填充的 HSLA 颜色?
gc = Magick::Draw.new
gc.fill ????
gc.rectangle(x,y, x + size,y + size)