3. C Function

Call it monolith_gfx_fuzzydot.

<<funcdefs>>=
int monolith_gfx_fuzzydot(monolith_framebuffer *fb,
                          int cx, int cy,
                          float rad,
                          float feather,
                          float blend,
                          int powslope,
                          monolith_pixel clr);
<<funcs>>=
void monolith_gfx_blend(monolith_pixel c0,
                        monolith_pixel c1,
                        float a,
                        monolith_pixel *out);
int monolith_gfx_fuzzydot(monolith_framebuffer *fb,
                          int cx, int cy,
                          float rad,
                          float feather,
                          float blend,
                          int powslope,
                          monolith_pixel clr)
{
    int x, y;
    int sz;
    int xs, ys;
    float fillrad;
<<check_bounds>>
<<create_bounding_box>>
<<calculate_fillrad>>
<<iterate_through_box>>
    return 1;
}



prev | home | next