Advertisement
ZoriaRPG

Dimentio-arc

Dec 28th, 2016
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.72 KB | None | 0 0
  1.  if(sdci[13]) //filled
  2.         {
  3.             clear_bitmap(prim_bmp);
  4.             arc(prim_bmp, cx+xoffset, cy+yoffset, sa, ea, int(r), color);
  5.             line(prim_bmp, cx+xoffset, cy+yoffset, cx+xoffset+fixtoi(fixcos(-sa)*r), cy+yoffset+fixtoi(fixsin(-sa)*r), color);
  6.             line(prim_bmp, cx+xoffset, cy+yoffset, cx+xoffset+fixtoi(fixcos(-ea)*r), cy+yoffset+fixtoi(fixsin(-ea)*r), color);
  7.             floodfill(prim_bmp, zc_max(0,fx)+xoffset, zc_max(0,fy)+yoffset, color);
  8.            
  9.             if(sdci[14]/10000<=127) //translucent
  10.             {
  11.                 draw_trans_sprite(bmp, prim_bmp, 0,0);
  12.             }
  13.             else
  14.             {
  15.                 draw_sprite(bmp, prim_bmp, 0,0);
  16.             }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement