/* file name: mmoore2a.h written by: maui moore date: 15 November 2007 description: file containing documentation and declaration of a function that draws a palm tree for a maui-like environment :) */ // This function draws a palm tree with palm fronds of palmColor1, palmColor2 // and palmColor3. These should be expressed as triples of floating point // numbers specifying RGB colors, as should the trunkColor. // The trunk of the tree is a stack of cones. treeBase is the width of each // cone at the base. The palm fronds are also conical. // They are 2/3 the height of the tree in // length and their bases are half of the base of the trunk. // The tree appears in the left corner of the bounding box where the x and // z coords of the base of the tree are a function of the height of the tree // and where y = 0. void mmoore2LitPalmTree(twTriple palmColor1, twTriple palmColor2, twTriple coconutColor, twTriple trunkColor, float treeBase, int treeHeight);