/************ Mala's Objects for the F05 Object Library ************ /*----------------------------------------------------------------------- Function: Draws a cylindrical vase containing a singular flower vase(...) takes 6 parameters in total, and calls a subfunction named flower. 1 vaseScale [int] scaling/size of the vase - the radii of the top & bottom of the vase (drawn using twCylinder) will be half this number *Please note, once the vaseScale measurement has been given, the flower is drawn proportionally. 2 vaseColor [twTriple] the main color of the vase 3 bottomColor [twTriple] the coloring of the bottom of the vase 4 rimColor [twTriple] color of the rim at the top of the vase 5 flowerColor1 [twTriple] one color used in creation the flower 6 flowerColor2 [twTriple] another color used in creation of the flower For best aesthetic results, do not use the same color for vaseColor and bottomColor, or flowerColor1 and flowerColor2. If you prefer a vase without the rim accent, use the same color for rimColor as you do for vaseColor. */ void vase(int vaseScale, twTriple vaseColor,twTripleb bottomColor, twTriple rimColor, twTriple flowerColor1, twTriple flowerColor2); /*--------------------------------------------------------------------- Function: Draws a long couch with arms constructed of glutSolidCubes couch(...) takes 3 parameters in total 1 e [int] The scaling of the couch. The width & height will each be 3 times this number,and the depth will be 2.5 times this number 2 colorA [twTriple] main color of the couch 3 colorB [twTriple] piping of the couch (accented edges for definition) */ void couch(int e,twTriple colorA,twTriple colorB); /*--------------------------------------------------------------------- ceilingLight function: Draws a lamp meant to be hung from the ceiling, complete with lightshade and bulb ceilingLight(...) takes 3 parameters in total 1 lh [int] height of the light pole from which the shade hangs from. 2 mat [twTriple] color of the lighting structure 3 bulbcolor [twTriple] color of the light bulb within the light shade The shade does not adjust according to 'lh' or the pole height, so in that sense the light is not scalable. Notice that the yellow bulb stays a stark bright yellow if you enable lighting in the msarkarCeilingLight demo; if you want to disable this feature, change the value of light0 within the function to 'false.' */ void ceilingLight(int lh, twTriple mat, twTriple bulbColor); /*--------------------------------------------------------------------- ottoman function: Draws an ottoman using glutSolidTorus and a flattened sphere to cover the middle ottoman(...) takes 2 parameters in total 1 ottomanScale [int] scaling of the ottoman/diameter of the ottoman 2 ottomanColorA [twTriple] main color of the body of the ottoman 3 ottomanColorB [twTriple] color of middle of ottoman, and accents The ottoman should looks alright in a room setting with lighting. In the demo there is some lighting, but for added clarity I've added piping to the ottoman, and made the middle of the ottoman a different color. The simplest way to get rid of these effects is to use the same twTriple for the second and third parameter. Alternatively, you could delete the lines which draw the wireTorus piping. */ // needs a trailing semi-colon here void ottoman(int ottomanScale, twTriple ottomanColorA, twTriple ottomanColorB) ;