Watchmaker Wiki

The ultimate watch maker for Android Wear!

User Tools

Site Tools


tips:dynamiccolor

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
tips:dynamiccolor [2015/01/28 06:43]
rahul_pawa [Gradually Transition Color As Battery Drains, From Green to Yellow to Red]
tips:dynamiccolor [2016/07/05 21:32] (current)
wmissimer Correcting this entry to match below (which is correct)
Line 19: Line 19:
  
  
-   {bl} > 66 and string.format('​%.2x%s',​(100-{bl})*256/​33,'​FF00'​) or {bl} > 16 and string.format('​%s%.2x%s','​FF',​({bl}-16)*255/​50,'​00'​) or '​FF0000'​+   {bl} > 66 and string.format('​%.2x%s',​(100-{bl})*255/​33,'​FF00'​) or {bl} > 16 and string.format('​%s%.2x%s','​FF',​({bl}-16)*255/​50,'​00'​) or '​FF0000'​
  
  
tips/dynamiccolor.txt ยท Last modified: 2016/07/05 21:32 by wmissimer