Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
devCodezyng
Reel Rookie

how to add shadow to a rectangle element using scenegraph and brs

I have a rectangle element - 

        <rectangle
            height= "90"
            width = "1920"
            color="#f5f5f5"
        />

how to add a shadow like effect to it.

0 Kudos
1 REPLY 1
renojim
Community Streaming Expert

Re: how to add shadow to a rectangle element using scenegraph and brs

Add another rectangle before it in your XML with whatever offset you want.

<rectangle
  height= "90"
  width = "1920"
  color="#f5f5f5"
  translation="[10,10]"
  opacity="0.80"
/>

You'll probably want to experiment with color, translation, and opacity to get the effect you desire.

Roku Community Streaming Expert

Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.

I am not a Roku employee.
0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.