summaryrefslogtreecommitdiff
path: root/FSF-2020/calculus-of-several-variables/div-curl-grad-and-all-that/Curl and Div/DivCurl_file12_ponder-curl.py
blob: be8a17a99766bd8d8fddceb6877bd09fa00891e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
from manimlib.imports import *
import numpy as np

def curl(coordinate):
	x,y = coordinate[:2]
	return np.array([
			y,
			0,
			0
	])

class Ponder_curl(Scene):
	def construct(self):
		vf = VectorField(curl)
		self.add(vf)
		self.wait()