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 revisionPrevious revision
tips:dynamiccolor [2015/01/28 05:43] – [Gradually Transition Color As Battery Drains, From Green to Yellow to Red] rahul_pawatips: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('%.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 19:32 by wmissimer