Weird circles

No.12480754 ViewReplyOriginalReport
While attempting to make a simple program that renders a ball in C it created this image instead.
Anyone have a clue what this is? It looks pretty cool.
Here is the main function:
[code:lit]
int main(int argc, char *args[]) {
SDL_Window *window;
SDL_Renderer *renderer;
SDL_Surface *screenSurface;
initialize(&window, &renderer, &screenSurface);


/* for pixel in pixels */
/* for object in objects */
/* check if line from eye to pixel intersects object ? drawpixel : pass */
ball objects[N_OBJECTS];
point c = {.x = SCREEN_WIDTH/2, .y = SCREEN_HEIGHT/2, .z = SCREEN_WIDTH};
ball b = {.c = c, .r = SCREEN_WIDTH/3};
objects[0] = b;

point eye = {.x = SCREEN_WIDTH/2, .y = SCREEN_HEIGHT/2, .z = -SCREEN_WIDTH};

point p;
int o;
SDL_SetRenderDrawColor(renderer, 0xFF, 0x00, 0x00, 0xFF);
for (p.x = 0; p.x < SCREEN_WIDTH; p.x++) {
for (p.y = 0; p.y < SCREEN_HEIGHT; p.y++) {
for (o = 0; o < N_OBJECTS; o++) {
if (intersects(p, eye, objects)) {
SDL_RenderDrawPoint(renderer, p.x, p.y);
}
}
}
}
SDL_RenderPresent(renderer);
SDL_Delay(10000);

return 0;
}
[/code:lit]