Skip to content

Commit 80da805

Browse files
benedikt-grlWyattBlue
authored andcommitted
Switch height and width
1 parent 4b39d2b commit 80da805

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/numpy/generate_video.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
stream.pix_fmt = "yuv420p"
1515

1616
for frame_i in range(total_frames):
17-
img = np.empty((480, 320, 3))
17+
img = np.empty((320, 480, 3))
1818
img[:, :, 0] = 0.5 + 0.5 * np.sin(2 * np.pi * (0 / 3 + frame_i / total_frames))
1919
img[:, :, 1] = 0.5 + 0.5 * np.sin(2 * np.pi * (1 / 3 + frame_i / total_frames))
2020
img[:, :, 2] = 0.5 + 0.5 * np.sin(2 * np.pi * (2 / 3 + frame_i / total_frames))

0 commit comments

Comments
 (0)