Ledger Nano X - The secure hardware wallet
SHARE
TWEET

draw black 50% transparent box

a guest Apr 4th, 2020 169 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. _boxBrush.Color = new Color(0,0,0); //Black
  2. _boxBrush.Brush.Opacity = 0.5f; // 50% opacity
  3. Rectangle r = Rectangle.Create(x - playerScreen.Z / 4 - 3, y - 5, w + 3, h + 5);
  4. gfx.DrawRectangle(_boxBrush, r, 1);
  5. gfx.FillRectangle(_boxBrush, r);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top