/***********************************************************/ // Objects created by Zsuzsa Moricz, Fall 2005. // CS307 - Computer Graphics, Professor Scott Anderson /*------------ HAT - (SELF-CONTAINED FUNCTION) ------------*/ // Hat is created from a torus, a cylinder and a disk. // Origin is at the bottom of the hat // to be able to place it on a head or a surface. // Radius of hat 1.4, height 2. // Color needs to be set by the user beforehand with twColor(). // Suggested values: 0.5 for specularity and 100 for shininess. */ void hat(); /*------------ CLUB - (SELF-CONTAINED FUNCTION) ------------*/ // The club has a total height 7.5. // Origin is at handle and the club points downwards. // Color needs to be set by user beforehand with twColor(). // Suggested values: 1 for specularity and 30 for shininess. void club(); /*------------ BEANBAG - (SELF-CONTAINED FUNCTION) ------------*/ // Beanbag is a striped juggling ball. // To make the ball striped two spheres are placed into each other: // one is stretched along the x-axis while the other one along the z-axis. // This is how the illusion of the stripes is created. // Origin is at the bottom of the ball, radius of ball is 1. // Beanbag has two colors one is always black. // The other one is determined by the user with the twColor() function // before the beanbag function is called. // Suggested values: 1 for specularity and 40 for shininess. void beanbag(); /*------------ SPIRAL - (SELF-CONTAINED FUNCTION) ------------*/ // This function draws a spiral. // One spiral has length 4. // It takes 3 arguments: // 1: color // 2: int n - the number of spirals put together // 3: int nsteps - how many steps it takes to draw the curve // (efficiency vs smoothness) // Light behaves a little strange with this bezier curve. // Origin is at the bottom of the spiral. // And the spiral advances along the +y-axis. void drawSpiral(twTriple color, int n, int nsteps);