Welcome, szilvesztercsab!
I think this demo might be what you’re looking for:
I haven’t looked at the code to see how complicated it is yet.