.setRGB

I was wondering if there is a way to set the opacity of an object similar to the .setRGB thing… I’m sure this is a dumb question but I’m just curious

-thanks