====== Differences ====== This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
script_rotating_app_wheel [2014/03/13 00:39] tbog [Script code] |
script_rotating_app_wheel [2014/03/13 03:00] (current) tbog [Script code] |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== About the script ====== | ====== About the script ====== | ||
- | * Purpose : This script will take all app shortcuts and place them in a circle. | + | * Purpose : This script will take all app shortcuts and place them in a circle. When you scroll the container (desktop) the circle will rotate. |
* Author : TBog | * Author : TBog | ||
* Link: www.google.com/+BogdanTautuTBog | * Link: www.google.com/+BogdanTautuTBog | ||
Line 22: | Line 22: | ||
var a = []; | var a = []; | ||
var na = 0; | var na = 0; | ||
+ | /*how much to rotate, to increase speed multiply with something greater than 1*/ | ||
var offsetRot = c.getPositionX() / c.getWidth() * Math.PI * -2; | var offsetRot = c.getPositionX() / c.getWidth() * Math.PI * -2; | ||
var items = c.getItems(); | var items = c.getItems(); |