| pantson.morph: | Functions | Types | Modinfo | Source |

# morph

## Functions

Function CreateMorph:tmorph(w:Int,h:Int)
Description | Create a new morph type.

Function LoadMorph:tmorph(file:String)
Description | Load a morph file.

Function MorphImages:Timage(i1:Timage,m1:tmorph,i2:Timage,m2:tmorph,steps:Int,index:Int,frame1:Int=0,frame2:Int=0)
Description | Generates an image that is [index] steps into the morph from 2 images. Handle moves with image.

Function MorphPixmaps:TPixmap(p1:TPixmap,m1:tmorph,p2:TPixmap,m2:tmorph,steps:Int,index:Int)
Description | Generates a pixmap that is [index] steps into the morph of 2 pixmaps.

Function SaveMorph:Int(m:tmorph,file:String)
Description | Save a morph file.

## Types

Type tmorph
Description | The Morph type.

Field h:Int
Description | Height of morph grid.

Field version:Int
Description | version of morph file.

Field w:Int
Description | Width of morph grid.

Field x:Float[]
Description | Array of x co-ords for grid.

Field y:Float[]
Description | Array of y co-ords for grid.

Method load:Int(file:String)
Description | Load a morph file.

Method save:Int(file:String)
Description | save a morph file.

## Module Information

Version | 1.00
Author | Richard Hanson
Modserver | pantson