# How to draw a circle with WebGL using GL_POINTS [closed]

I'm trying to draw a circle using simple vertices points and a big gl_PointSize value. I found this example and try to reproduce it on WebGL with no success.

-

## closed as not a real question by Nicol Bolas, msell, Anko, bummzack, Sean MiddleditchMay 29 '13 at 23:49

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

We need more information. What goes wrong? What did you try? – olevegard May 16 '13 at 9:17
Here is an example codepen.io/moechofe/pen/ezgFb It seems my problem is my program doesn't compile when I add the varying variable. – moechofe May 16 '13 at 18:37
I forgot to add "precision mediump float;" in my fragment shader – moechofe May 16 '13 at 18:44

This is just using regular old sine and cosine to step around the circumference of a circle and place points. You just need to know the center of the circle, the radius and how many points you want. The following pseudo code will output a set of points that make up the positions of dots you need to make a circle of points:

circleXY(Vector3f center, float radius, int dots) {
float stepSize = ((2*Math.PI)/dots);
for (float d = 0; d <= (2*Math.PI)-stepSize; d += stepSize) {