User Tools

Site Tools


script_tint_hues

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

Link to this comparison view

Next revision
Previous revision
script_tint_hues [2015/09/25 01:57]
bdjnk created
script_tint_hues [2015/09/25 02:58] (current)
bdjnk [Script code]
Line 1: Line 1:
 ====== About the script ====== ====== About the script ======
-  * Purpose : Generates nice random tint hues and applies them to your Lightning Launcher ​desktop wallpaper+  * Purpose : Generates nice random tint hues and applies them to your current ​desktop wallpaper
   * Author : [[http://​michael.plotke.me/​|Michael Plotke]]   * Author : [[http://​michael.plotke.me/​|Michael Plotke]]
   * Link : [[http://​martin.ankerl.com/​2009/​12/​09/​how-to-create-random-colors-programmatically/​|Inspiration]]   * Link : [[http://​martin.ankerl.com/​2009/​12/​09/​how-to-create-random-colors-programmatically/​|Inspiration]]
Line 11: Line 11:
 <sxh javascript>​ <sxh javascript>​
  
-golden_ratio_conjugate = 0.618033988749895;​+var golden_ratio_conjugate = 0.618033988749895;​
 var desktop = LL.getCurrentDesktop();​ var desktop = LL.getCurrentDesktop();​
  
Line 23: Line 23:
  
 hue *= 360; hue *= 360;
-hsv = [hue, 0.4, 0.4];+var hsv = [hue, 0.4, 0.4];
 var color = Color.HSVToColor(0x80,​ hsv); var color = Color.HSVToColor(0x80,​ hsv);
  
script_tint_hues.1443146269.txt.gz ยท Last modified: 2015/09/25 01:57 by bdjnk