Question: me again. How do you increase line thickness in Lice? i.e. highlighted envelope in reaper
Asked by olilarkin (144.32.204.x) on July 3 2012, 2:39pm
Reply on July 3 2012, 3:13pm:Heh, doesn't really support that -- what the highlighted envelope drawing does is:
LICE_Line(licebm, xstart, ystart, xend, yend, color, alpha, LICE_BLIT_MODE_COPY, aa);
if (envselected)
{
if (abs(xend-xstart) > abs(yend-ystart))
{
++ystart;
++yend;
}
else
{
++xstart;
++xend;
}
LICE_Line(licebm, xstart, ystart, xend, yend, color, alpha, LICE_BLIT_MODE_COPY, aa);
}
Question: Is there anyway to draw a filled round rect in LICE?
Asked by olilarkin (86.13.97.x) on July 1 2012, 10:14am
Reply on July 2 2012, 3:05am:Assuming that you are OK with mode==LICE_BLIT_MODE_COPY and alpha==1.0, x1,y1,w,h,r and color passed to:
LICE_FillRect(framebuffer,x1+r,y1,w-2*r,h,color,alpha,mode);
LICE_FillRect(framebuffer,x1,y1+r,r,h-2*r,color,alpha,mode);
LICE_FillRect(framebuffer,x1+w-r,y1+r,r,h-2*r,color,alpha,mode);
LICE_FillCircle(framebuffer,x1+r,y1+r,r,color,alpha,mode,aa);
LICE_FillCircle(framebuffer,x1+w-r-1,y1+h-r-1,r,color,alpha,mode,aa);
LICE_FillCircle(framebuffer,x1+w-r-1,y1+r,r,color,alpha,mode,aa);
LICE_FillCircle(framebuffer,x1+r,y1+h-r-1,r,color,alpha,mode,aa);
...would do the trick.