tips:dynamiccolor
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tips:dynamiccolor [2015/01/28 05:43] – [Gradually Transition Color As Battery Drains, From Green to Yellow to Red] rahul_pawa | tips:dynamiccolor [2016/07/05 19:32] (current) – Correcting this entry to match below (which is correct) wmissimer | ||
---|---|---|---|
Line 19: | Line 19: | ||
- | {bl} > 66 and string.format(' | + | {bl} > 66 and string.format(' |
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(' |
tips/dynamiccolor.txt · Last modified: 2016/07/05 19:32 by wmissimer