public void setTint(Color tint)
 {
     _tint.R = (byte)tint.getRAsByte();
     _tint.G = (byte)tint.getGAsByte();
     _tint.B = (byte)tint.getBAsByte();
     _tint.A = (byte)tint.getAAsByte();
 }
Example #2
0
        public void setTint(Color c)
        {
            var oldAlpha = getAlpha();

            _tint = c;
            setAlpha(oldAlpha);
        }
 public void setColor(Color tint)
 {
     _currentColor = (MonoGameColor)_currentColor.copy();
     _currentColor.setR(tint.rf());
     _currentColor.setG(tint.gf());
     _currentColor.setB(tint.bf());
     _currentColor.setA(tint.af());
 }
 public void setColor(Color c)
 {
     _setColor = c;
 }
Example #5
0
 public void setColor(Color color)
 {
     _setColor = (MonoGameColor)color;
 }
Example #6
0
 public void drawPixel(int x, int y, Color color)
 {
     drawPixel(x, y, ((MonoGameColor)color).toRGBA8888());
 }
 public void setBackgroundColor(Color backgroundColor)
 {
     _backgroundColor = ((MonoGameColor)backgroundColor)._color;
 }
 public void setColor(Color color)
 {
     _setColor = color;
     _shapeRenderer.setColor((MonoGameColor)_setColor);
     _font.setColor(color);
 }
 public void clearContext(Color c, bool depthBufferBit, bool colorBufferBit)
 {
     internalClearContext((c as MonoGameColor)._color, depthBufferBit, colorBufferBit);
 }
Example #10
0
 public void clearContext(Color c)
 {
     clearContext(c, true, true);
 }
Example #11
0
 public override Color newReadOnlyColor(Color color)
 {
     return(new MonoGameReadOnlyColor(color.rb(), color.gb(), color.bb(), color.ab()));
 }