justin = { main feed , music , code , askjf , pubkey };
Ask Justin Frankel
No reasonable question unanswered since 2009!

Suggested topics: programming, music, sleep, coffee, etc.

Note: please do not ask questions about REAPER features, bugs or scheduling, use the forums instead.


Name: Ask: Human (enter yes):
[back to index] | [unreplied] | [replied] | [recent comments] | [all]

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:
    Your Name:   -- Site Owner's Name:  (for human-verification)

    Comment:    

    
  
[back to index] | [unreplied] | [replied] | [recent comments] | [all]
Copyright 2025 Justin Frankel. | RSS