```
import math
def distanceBetween(point1, point2):
return math.sqrt((point2[0] - point1[0])**2 + (point2[1] - point1[1])**2)
def angleBetween(point1, point2):
return math.atan2( point2[0] - point1[0], point2[1] - point1[1] )
class MyPath():
def move_to(self,x,y):
self.path = [(x,y)]
def line_to(self,x,y):
self.path.append((x,y))
def stroke(self):
w = 20
ui.set_alpha(0.006)
lastPoint = self.path[0]
for i in range(1,len(self.path)):
currentPoint = self.path[i]
dist = distanceBetween(lastPoint, currentPoint)
angle = angleBetween(lastPoint, currentPoint)
for j in range(int(dist)):
x = lastPoint[0] + (math.sin(angle) * j)
y = lastPoint[1] + (math.cos(angle) * j)
circle = ui.Path.oval(x, y, w, w)
circle.fill()
lastPoint = currentPoint
```

]]>```
import math
def distanceBetween(point1, point2):
return math.sqrt((point2[0] - point1[0])**2 + (point2[1] - point1[1])**2)
def angleBetween(point1, point2):
return math.atan2( point2[0] - point1[0], point2[1] - point1[1] )
class MyPath():
def move_to(self,x,y):
self.path = [(x,y)]
def line_to(self,x,y):
self.path.append((x,y))
def stroke(self):
w = 20
ui.set_alpha(0.006)
lastPoint = self.path[0]
for i in range(1,len(self.path)):
currentPoint = self.path[i]
dist = distanceBetween(lastPoint, currentPoint)
angle = angleBetween(lastPoint, currentPoint)
for j in range(int(dist)):
x = lastPoint[0] + (math.sin(angle) * j)
y = lastPoint[1] + (math.cos(angle) * j)
circle = ui.Path.oval(x, y, w, w)
circle.fill()
lastPoint = currentPoint
```

]]>I am running the latest version of Pythonista (3.2) using python 3.6 on a 10.5” iPad Pro with iOS 11.2

]]>