tips:dynamiccolor
This is an old revision of the document!
Table of Contents
Changing Color Dynamically
Examples
Change Color When Event is Approaching
{c1bp} <= ({dtp}+(1/24)) and 'ff0000' or 'ffffff'
Transition Color As Battery Drains, From Green to Yellow to Red
{bl} >= 66 and string.format('%x%s',(100-{bl})*7.5264,'ff00') or {bl} > 15 and string.format('%s%x%s','ff',({bl}-15)*5.12,'00') or 'ff0000'
Introduction
tips/dynamiccolor.1421873481.txt.gz · Last modified: 2015/01/21 20:51 by rahul_pawa