Blur effect
Blur is a visual effect that blurs selected parts of the interface.
Use the latest Studio version to display the effect correctly.
Many users know blur from Photoshop or Apple products. This feature is now implemented, allowing inactive interface areas to be distinguished by blurring them.
Apply blur permanently to a graphic item (button), or change its state dynamically through a script. Pressing a button can then display blurred items over an active page containing working graphic items. Blur can be applied to an individual page item, such as a button, trigger button, or level.

The examples contain two projects. One creates blur through graphic settings and scripts. The other, based on iOS, demonstrates blur in a ready-made interface when Unlock is pressed.
Blur settings
Blur has these parameters:
-
BlurType - blur type: Default or Background.
-
Default - blurs the item's image. The whole image on the button is blurred; the background does not show through.
-
Background - takes the background beneath the graphic item, overlays it on the item, and blurs that image.
-
-
BlurDepth - effect depth from 0 to 100. At 0 there is no blur; 100 gives maximum blur.
Use blur in Studio in either of two ways:
1. Configuring blur in iRidi Studio
All blur settings are available in the state settings of a graphic item, page, or popup. Configuration takes a few simple steps.

- Create a graphic item in the project and open its States settings. Set BlurType .
Default - blurs the item's image. The whole image on the button is blurred; the background does not show through.

Background - takes the background beneath the graphic item, overlays it on the item, and then blurs it.

- Set the effect depth from 0 to 100 in BlurDepth .
Set effect depth from 1 to 100. At 0, no blur is applied. With Background and 0, the item's image is not processed and remains visible.
2. Configuring blur in JavaScript
BlureType is specified as follows:
.BlurType = IR.BLUR_DEFAULT - sets the object's blur type to Default .
IR.GetPage("Page 1").GetState(0).BlurType = IR.BLUR_DEFAULT; //типа блюра "Default"</translate>
IR.GetPage("Page 1").GetState(0).BlurDepth = 100;
.BlurType = IR.BLUR_BACKGROUND - sets the object's blur type to Background .
IR.GetPopup("Popup 7").GetState(0).BlurType = IR.BLUR_BACKGROUND; //тип блюра "Background"</translate>
IR.GetPopup("Popup 7").GetState(0).BlurDepth = 15; //глубина эффекта</translate>
BlurDepth - effect depth.
.BlurDepth = 15 - depth ranges from 0 to 100.
IR.GetPopup("Popup 7").GetState(0).BlurDepth = 15;