import Fedor's contribution

This commit is contained in:
François Boulogne
2013-10-02 17:23:37 +02:00
parent c414e96fcc
commit ed8521175b
3 changed files with 67 additions and 22 deletions
+4
View File
@@ -48,6 +48,10 @@ img[rr,cc,2] = 255
rr, cc = circle_perimeter(120, 400, 15)
img[rr, cc, :] = (255, 0, 0)
# anti-aliased circle
rr, cc, val = circle_perimeter(120, 400, 70, 'wu')
img[rr, cc, 1] = val * 255
# ellipses
rr, cc = ellipse_perimeter(120, 400, 60, 20, orientation=math.pi / 4.)
img[rr, cc, :] = (255, 0, 255)