Using rgb colours

Hi

I’m trying to create my first widget with Scriptable but I would like a transparent background.

I thought i could just use the following line:

widget.backgroundColor = Color.rgba(255, 0, 0, 0.3);

But it gives me the following erro:

widget.backgroundColor = Color.rgba(255, 0, 0, 0.3);

There’s no way to create transparent widgets. What we normally use is simulated transparency by taking a screenshot of the current wallpaper and cropping at the appropriate points. Then use that cropped image as widget background.

There are modules like no-background to make that process easier. Disclaimer: I authored that module.

Thank you. I’ll try that