Click on the bar to drag it (click near the middle) or rotate it (click near the ends) Hold space to observe how the direction changes as it bounces. Observe how the ball bounces off the sprite. It's not perfect but it is viable.
You can use this freely but be warned I didn't come up with this. Since I'm unable to find where I figured this out I have to recreate it.