Back to index

scribus-ng  1.3.4.dfsg+svn20071115
Functions
golden-mean Namespace Reference

Functions

def goldenMean
def main

Function Documentation

def golden-mean.goldenMean (   aSize = 0)
x = (?5-1)/2

Definition at line 53 of file golden-mean.py.

00053 
00054 def goldenMean(aSize=0):
00055     """x = (?5-1)/2"""
00056     return aSize * ((sqrt(5) - 1)/2)
00057 

Here is the caller graph for this function:

def golden-mean.main ( )

Definition at line 58 of file golden-mean.py.

00058 
00059 def main():
00060     # remember user settings
00061     unit = getUnit()
00062     # set my environment - points needed
00063     setUnit(0)
00064     # Paper format
00065     paper = pageDimension()
00066     # set the guides. The get* functions are for "remembering" the old ones...
00067     setVGuides(getVGuides() + [goldenMean(paper[0]), paper[0] - goldenMean(paper[0])])
00068     setHGuides(getHGuides() + [goldenMean(paper[1]), paper[1] - goldenMean(paper[1])])
00069     # restore user settings
00070     setUnit(unit)

Here is the call graph for this function: