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.
Comment: