Not clear what you want to do, you need to provide a better description
What have you tried?
Possibly this snipped is part of what you hope to do
This might help you do what you want:
and