ColorPanel.SetAlpha
-------------------

Sets alpha part of the color.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [ColorPanel](component_ColorPanel.md) | [10.3](newinversion103.md) | ✅ Yes | ❌ No | ❌ No | ❌ No | ❌ No |

MBS( "ColorPanel.SetAlpha"; Alpha ) 

**MBS**( **"ColorPanel.SetAlpha";** /\* Sets alpha part of the color. \*/  
**$Alpha**) /\* The new alpha value.  
Range from 0.0 to 1.0.e.g. 0.5 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Alpha | The new alpha value.   Range from 0.0 to 1.0. | 0.5 |

### Result

Returns OK or error.

### Description

Sets alpha part of the color.  
### Examples

Set Alpha to 50%:

 Set Variable \[$r ; Value: MBS ( "ColorPanel.SetAlpha"; 0.5 ) \]  
### See also

- [ColorPanel.GetAlpha](ColorPanelGetAlpha.md)
- [ColorPanel.SetColor](ColorPanelSetColor.md)

### Release notes

- **Version 10.3**
    - Added [ColorPanel.GetAlpha](https://www.mbsplugins.eu/ColorPanelGetAlpha.shtml) and [ColorPanel.SetAlpha](https://www.mbsplugins.eu/ColorPanelSetAlpha.shtml) functions.

### Blog Entries

- [MBS FileMaker Plugin, version 10.3pr4](https://www.mbsplugins.de/archive/2020-06-16/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 15th June 2020 , last changed 15th June 2020

  
[ColorPanel.Hide](ColorPanelHide.md) - [ColorPanel.SetColor](ColorPanelSetColor.md)

[HTML Version](ColorPanelSetAlpha.shtml)