I managed to create a simple green circle using THREE.Shape.
Now, I am interested in changing the color of the circle so that it transitions from green in the middle to red at the border.
Although I found an example on this website, I'm struggling to figure out how to adapt it to my own project.
Here's the code snippet responsible for creating the circle:
var arcShape = new THREE.Shape();
arcShape.absarc(100, 100, circleRadius, 0, Math.PI * 2, false);
var geometry = new THREE.ShapeGeometry(arcShape);
var material = new THREE.MeshBasicMaterial({ color: 0x00ff11, overdraw: 0.5, side: THREE.DoubleSide });
var mesh = new THREE.Mesh(geometry, material);
mesh.position = CirclePosition;
mesh.rotation.set(Algorithms.ConvertDegreesToRadians(-90), 0, 0);