This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Last revision Both sides next revision | ||
tips:dynamiccolor [2015/01/28 06:43] rahul_pawa [Gradually Transition Color As Battery Drains, From Green to Yellow to Red] |
tips:dynamiccolor [2015/01/28 06:43] rahul_pawa [Gradually Transition Color As Battery Drains, From Green to Yellow to Red] |
||
---|---|---|---|
Line 53: | Line 53: | ||
- | {bl} > 66 and string.format(' | + | {bl} > 66 and string.format(' |
Here again we are using a condition to set the color value of an object, this time the condition is {bl} > 66, and the value we get is a function of the battery level: string.format(' | Here again we are using a condition to set the color value of an object, this time the condition is {bl} > 66, and the value we get is a function of the battery level: string.format(' |