Draw moire patterns in python