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
Next revisionBoth sides next revision
tips:dynamiccolor [2015/01/22 03:12] – [Gradually Transition Color As Battery Drains, From Green to Yellow to Red] rahul_pawatips:dynamiccolor [2015/01/28 05:38] – [Examples] rahul_pawa
Line 19: Line 19:
  
  
-   {bl} > 66 and string.format('%x%s',(100-{bl})*256/33,'FF00') or {bl} > 16 and string.format('%s%x%s','FF',({bl}-16)*255/50,'00') or 'FF0000'+   {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'
  
  
tips/dynamiccolor.txt · Last modified: 2016/07/05 19:32 by wmissimer