Forum Discussion
TwitchBronBron
3 years agoStreaming Star
Not nicely, no. There's no css-style gradient support.
You would need to create a roBitmap, and then write rectangles to represent the gradient.
Then write it to tmp:
Then pass the uri out to the poster node (or wherever needs to read it)
Fusioni-Dev
3 years agoReel Rookie
w = 1920
h = 1080
bm = CreateObject("roBitmap", {width: w, height: h, AlphaEnable: false})
bm.DrawRect(10, 10, w-20, h-20, &H8080)
bm.Finish()
ba = bm.GetPng(0, 0, w, h)
ba.WriteFile("tmp:/test.png")
Use this but it doesn't look like gradient.