...

/

Showing Camera Shutter Effect

Showing Camera Shutter Effect

Developing the camera shutter effect program with Numpy and Tkinter.

These are the libraries that you will be using.

import tkinter as tk
import numpy as np
from PIL import Image, ImageTk

Getting set up

This program will use conic sections to compute the ellipses that will represent the propellers. Here is a very high-level mathematical explanation: the absolute value of a complex plane in the third dimension is a cone. Slicing the cone in planes parallel to the x-y plane results in a circle. Anything from the circle down to the Z = 0 plane is a disk. Adding multiple cones offset from the origin results in a solid ellipse, and moving the location of the ellipse around the origin X amount of times results in X number of blades in a propeller. Conic sections continue to haunt you, and this time, they are ...