Two problems with the ring function.
FIRST: In Vpython, the ring object doesn't recognize the radius parameter. The program below should create concentric rings, but all are the same size (radius = 1).
from vpyton import ring, vec
for i in range(1,5):
ring(radius = i, axis=vec(0,0,1))
I am using Spyder with installed python
In Glowscript, ring works properly.
SECOND: I updated vpython
(pip install --upgrade vpyton).
I now get the following error:
File C:\Program Files\Python311\Lib\site-packages\vpython\vpython.py:1280 in __init__
super(ring, self).setup(args)
TypeError: super(type, obj): obj must be an instance or subtype of type
Harlan