Looking for some help with code that generates a yellow circle:
let radius = 5,
segments = 64,
material = new THREE.LineBasicMaterial( { color: 0xF0C400 } ),
geometry = new THREE.CircleGeometry( radius, segments );
geometry.vertices.shift();
let circle = new THREE.Line(geometry, material);
circle.position.set(5,5,0);
circle.rotation.set(1.57,0,0);
scene.add(circle);
I'm wondering how to fill the circle with color instead of just having an outline. I attempted to change the material but it didn't work..
Update: Turns out, changing THREE.Line to THREE.Mesh did the trick!