I've set up some constraints and some sample code. If you modify either, the results will update in real time!