Panda3D

- Main Page
- Packages
- Classes

- Packages
- Package Functions

Functions

# Package directtools.DirectUtil

## Functions
def | CLAMP
def | getFileData
def | getTkColorString
def | lerpBackgroundColor
| Background Color ##.
def | ROUND_INT
def | ROUND_TO
def | useDirectRenderStyle

## Function Documentation

def directtools.DirectUtil.CLAMP | ( |  | val,
|  |  | minVal,
|  |  | maxVal
| ) |  |

def directtools.DirectUtil.getFileData | ( |  | filename,
|  |  | separator = `'`
| ) |  |

    Open the specified file and strip out unwanted whitespace and
    empty lines.  Return file as list of lists, one file line per element,
    list elements based upon separator

def directtools.DirectUtil.getTkColorString | ( |  | color | ) |

    Print out a Tk compatible version of a color string

def directtools.DirectUtil.lerpBackgroundColor | ( |  | r,
|  |  | g,
|  |  | b,
|  |  | duration
| ) |  |

Background Color ##.

    Function to lerp background color to a new value

def directtools.DirectUtil.ROUND_INT | ( |  | val | ) |

def directtools.DirectUtil.ROUND_TO | ( |  | value,
|  |  | divisor
| ) |  |

def directtools.DirectUtil.useDirectRenderStyle | ( |  | nodePath,
|  |  | priority = `0`
| ) |  |

    Function to force a node path to use direct render style:
    no lighting, and no wireframe

All Classes Namespaces Functions Variables Enumerations Enumerator Properties