Forums > Javascript

how do i fill a closed shape made with strokepoints?

January 31, 2006 | 6:52 pm

Hi

Does anyone know if it is possible to fill a closed shape made with strokepoints?

with (sketch) {
beginstroke();
strokepoint(x0,y0);
strokepoint(x1,y1);
strokepoint(x2,y2);
strokepoint(x0,y0);
endstrokeAndFillIt(); //???
}

thanks


January 31, 2006 | 8:15 pm

Unfortunately not at this time, though this is something we’d like to
add. You’ll need to do your own polygon winding for the time being.

-Joshua


Viewing 2 posts - 1 through 2 (of 2 total)