I am trying to set the colour of a shape on google slides using AppsScript. I am able to achieve this but realise that transparency values are 0. How can I set a new colour and the transparency value? I have tried to add transparency direct to the hex i.e. #F2E4002B for 95% Transparency - but this fails.
function colourForeground(aShape) {
let aColour = "#E4002B"
aShape.getText().getTextStyle().setForegroundColor(aColour);
}