Open main menu
Home
Random
Log in
Settings
About Sugar Labs
Disclaimers
Sugar Labs
Search
Changes
← Older edit
Newer edit →
User:Walter/favoriteslayout.py
(view source)
Revision as of 18:47, 9 September 2008
No change in size
,
18:47, 9 September 2008
no edit summary
Line 223:
Line 223:
# radius is proportional to index/children_count
# radius is proportional to index/children_count
myminimum = _MINIMUM_RADIUS * .667
myminimum = _MINIMUM_RADIUS * .667
−
newradius = ((radius - myminimum) * (index * 1.1) / children_count)
+
newradius = ((radius - myminimum) * (index * 1.1) / children_count)
+
−
+
myminimum
+
myminimum
x = newradius * math.cos(angle) + (width - icon_size) / 2
x = newradius * math.cos(angle) + (width - icon_size) / 2
y = newradius * math.sin(angle) + (height - icon_size -
y = newradius * math.sin(angle) + (height - icon_size -
Walter
Bureaucrats
,
Administrators
10,505
edits