You will have to go native to find this. It looks like there are many ways to do this depending on your chosen native language. Java would have no facility to do this.
Post by:autobot
Our first order of business must be this tiny ad:
a bit of art, as a gift, the permaculture playing cards