bool setAngleArcFill(int x, int y, int radius, int a, int b, int color)
True if the function succeeded, false otherwise
Render a filled arc-shape to an OWNERDRAW control.
%fml Title: "Wakka Wakka" ctl(1): OWNERDRAW(drawitem), Pos=(300,50), Size=(100, 100) OnFilterStart: { // Maximum X/Y pixel co-ords of ownerdraw int maxxpixel = HDBUsToPixels(100)-1; int maxYpixel = VDBUsToPixels(100)-1; // Start using setPixel drawing on OWNERDRAW control 1 startSetPixel(1); // Draw a black / blue background gradient setRectGradient(0, 0, maxxpixel, maxYpixel, RGB(0, 0, 0), RGB(0, 0, 255), false); // Draw a round pill-colored circle setEllipseFill(180, 115, 230, 165, RGB(255, 255, 192)); // Draw a yellow arc-shaped character // who says wakka wakka wakka setAngleArcFill(140, 140, 100, 3.1415 * 2.0 * 37.5 / 100.0, 3.1415 * 2.0 * 12.5 / 100.0, RGB(255,255,0)); // Stop using setPixel drawing endSetPixel(1); return true; }
OWNERDRAW, startSetPixel, setAngleArc, setEllipseFill, setFill, setRectFrame, endSetPixel