Watchmaker Wiki

The ultimate watch maker for Android Wear!

User Tools

Site Tools



This shows you the differences between two versions of the page.

Link to this comparison view

opacity [2015/01/15 20:24] (current)
splitbrain created
Line 1: Line 1:
 +====== Opacity ======
 +The opacity property accepts a value from 0 to 100. Where 0 set an element to completely invisible while 100 means it's completely opaque.
 +{{ :​screens:​opacity.png?​200|}} The Screenshot shows Opacitie values of 0, 25, 50, 75 and 100.
 +Please note: when you use a [[shader]], the opacity is set in the shader. The widget'​s "​normal"​ opacity is ignored then.
 +===== Using Expressions =====
 +Opacity can be used to switch widgets on an off programatically.
 +Example: to show an element only on the afternoon, you can use the following expression for the opacity value:
 +  ({dh23} > 12) and 100 or 0
opacity.txt ยท Last modified: 2015/01/15 20:24 by splitbrain