canvas draw rounded rectangle in reverse? -
i apologise in advance asking this, kindly provided code draw rounded corner rectangle progress bar great:
i need reverse drawing of rectangle can't life of me manage it
i tried changing points @ 4 lines , 4 corners drawn starts top left corner i'm making total mess of it:
var startt = 0; var starttr = horizlinelength; var startr = starttr + cornerlength; var startbr = startr + vertlinelength; var startb = startbr + cornerlength; var startbl = startb + horizlinelength; var startl = startbl + cornerlength; var starttl = startl + vertlinelength;
to
var starttl = 0; var startl = starttl + cornerlength; var startbl = startl + vertlinelength; var startb = startbl + cornerlength; var startbr = startb + horizlinelength; var startr = startbr + cornerlength; var starttr = startr + vertlinelength; var startt = starttr = cornerlength;
can point me in right direction please?
instead of this:
drawpercentrect(ui.value);
do this:
drawpercentrect(100-ui.value);
Comments
Post a Comment