GimpGradientFile
index
/Library/Python/2.7/site-packages/PIL/GimpGradientFile.py

# Python Imaging Library
# $Id$
#
# stuff to read (and render) GIMP gradient files
#
# History:
#       97-08-23 fl     Created
#
# Copyright (c) Secret Labs AB 1997.
# Copyright (c) Fredrik Lundh 1997.
#
# See the README file for information on usage and redistribution.
#

 
Modules
       
string

 
Classes
       
GradientFile
GimpGradientFile

 
class GimpGradientFile(GradientFile)
     Methods defined here:
__init__(self, fp)

Methods inherited from GradientFile:
getpalette(self, entries=256)

Data and other attributes inherited from GradientFile:
gradient = None

 
class GradientFile
     Methods defined here:
getpalette(self, entries=256)

Data and other attributes defined here:
gradient = None

 
Functions
       
curved(middle, pos)
linear(middle, pos)
log(...)
log(x[, base])
 
Return the logarithm of x to the given base.
If the base not specified, returns the natural logarithm (base e) of x.
sin(...)
sin(x)
 
Return the sine of x (measured in radians).
sine(middle, pos)
sphere_decreasing(middle, pos)
sphere_increasing(middle, pos)
sqrt(...)
sqrt(x)
 
Return the square root of x.

 
Data
        EPSILON = 1e-10
SEGMENTS = [<function linear>, <function curved>, <function sine>, <function sphere_increasing>, <function sphere_decreasing>]
pi = 3.141592653589793