#include #include #include #include #include #include #include #include "draw.h" #include "fb.h" #include "rototiller.h" #include "starslib.h" /* Copyright (C) 2017 Philip J. Freeman */ static void stars_render_fragment(fb_fragment_t *fragment) { static int initialized, z; static struct universe* u; struct return_point rp; int x, y, width = fragment->width, height = fragment->height; if (!initialized) { z = 128; srand(time(NULL) + getpid()); // Initialize the stars lib (and pre-add a bunch of stars) new_universe(&u, width, height, z); for(y=0; y