public void setTint(Color tint) { _tint.R = tint.getRAsByte(); _tint.G = tint.getGAsByte(); _tint.B = tint.getBAsByte(); _tint.A = tint.getAAsByte(); }
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 setTint(Color tint) { _tint.R = tint.getRAsByte(); _tint.G = tint.getGAsByte(); _tint.B = tint.getBAsByte(); _tint.A = tint.getAAsByte(); _shapeRenderer.setTint(_tint); }
public void setBackgroundColor(Color backgroundColor) { _backgroundColor = ((MonoGameColor)backgroundColor).toMonoGameColor(); }
public void setColor(Color color) { _setColor = color; _shapeRenderer.setColor((MonoGameColor)_setColor); }
public override Color newReadOnlyColor(Color color) { return(new MonoGameReadOnlyColor(color.rb(), color.gb(), color.bb(), color.ab())); }
public void clearContext(Color c, bool depthBufferBit, bool colorBufferBit) { internalClearContext((c as MonoGameColor)._color, depthBufferBit, colorBufferBit); }
public void clearContext(Color c) { clearContext(c, true, true); }
public Color newColor(Color color) { return(new MonoGameColor(color.rb(), color.gb(), color.bb(), color.ab())); }
public void setColor(Color color) { _setColor = color; _shapeRenderer.setColor(MonoGameColor.toArgb(_setColor)); }