Skip to content

Instantly share code, notes, and snippets.

@kylemcdonald
Last active November 28, 2019 22:04
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kylemcdonald/fcc3135ca1823fb0f5fb56675389219f to your computer and use it in GitHub Desktop.
Save kylemcdonald/fcc3135ca1823fb0f5fb56675389219f to your computer and use it in GitHub Desktop.
Schlieren Moire Pattern
# before running this code, first run:
# git checkout https://github.com/kylemcdonald/python-utils utils
from utils.imutil import *
import numpy as np
stride = 1
resolution = [2160, 3840]
img = np.zeros(resolution)
for i in range(stride):
img[i::2*stride] = 255
imwrite(f'{resolution[1]}x{resolution[0]}.png', img)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment