
Glass effects are influenced by such key factors as lighting direction, light intensity, reflection, focus, and color. In any solid transparent object, the color is darker at the outer edges than in the middle. Soft overhead lighting bounces off the shiny surface of the glass, creating a reflection of the light source. The more focused the reflection, the smoother the surface will be.
Using CorelDRAW to simulate glass effects involves carefully applying your vector objects with color and transparency effects. To demonstrate how color and lighting influence the effect, let's start with the simple creation of a colored glass object:
- Using the Ellipse Tool draw a circle that is roughly 2 inches in diameter. Holding the Ctrl key constrains the ellipse shape to a circle.
- For a color mode, use the default CMYK palette. If the color palette isn't in view, you can display it by choosing Window > Color Palettes > Default CMYK palette. With the circle still selected, click the Yellow well (C0, M0, Y100, K0) to set the circle's fill color. Choose the Interactive Fill tool (shortcut key G), and use the property bar options to set the Fill Type to Radial (see below).

- For precise adjustment of the fountain fill colors and color positions in this example, I recommend using the Fountain Fill dialog (press F11). To specify your fountain colors, click the Custom radio button. Click the far left (0 percent position) color marker (it's black when selected), and click the Others button to access more color options. Set the CMYK values to C40, M50, Y100, K20. Set the far right (100 percent position) color marker to C0, M0, Y100, K0. Double-click to add two more color markers at 25 percent and 80 percent, and set these to C0, M5, Y100, K20 and C0, M0, Y100, K0, respectively (as shown below).

- To finish the color effect, set the Edge Pad option on the Property Bar to 5 percent, and remove any outline properties applied to the circle by right-clicking the None color well in the onscreen color palette. Your custom fill is now complete (see below).

- For the reflection effect, create a second circle that's roughly 1.5 inches in diameter, fill it with white, and position it to be centered and slightly below the top of the first circle. With the circle still selected, choose the Interactive Transparency Tool and drag from the top to the bottom of the shape. Remove any outline from the new circle.
- Position the white, black, and midpoint nodes of the transparency slider precisely, as shown below. Drag the black marker to the center of the yellow circle, drag the white marker slightly below the circle's top edge, and drag the midpoint marker upward, three quarters of the way between the two.

The same steps can be used to turn virtually any simple shape into glass. Just keep in mind that you need to pay close attention to both the custom fountain fill and the transparency marker positions for the effect to appear realistic.
Draw Glassy Buttons
The same basic effect can be used to simulate the cool 3D appearance of glass pill-shaped buttons. The steps involve rounding the corners of a rectangle filled with a specific linear fountain fill and applying resized white copies of the rectangle with transparency to simulate the reflection. Although there are several ways to construct glass pill-shaped buttons, this method is perhaps the quickest and uses the fewest shapes:
- Using the Rectangle Tool (F6), draw a rectangle roughly 1 inch high by 4.5 inches wide. (Use different proportions for larger or smaller text button labels if needed.)
- With the rectangle selected, use the Rectangle Corner Roundness and Round Corners Together options on the Property Bar to round all four corners by 100 percent, as shown below. You can also do this interactively by using the Shape Tool (F10).

- Choose the Interactive Fill Tool and drag vertically from the top to the bottom of the shape to apply a default linear fountain fill. To add colors at precise points, open the Fountain Fill dialog (F11), and click Custom. In this example, I've used a cyan blue color scheme. Set the 0 percent marker to C100, M20, Y0, K80 and the 100 percent marker to C10, M0, Y0, K0. Add a third color marker at the 40 percent position, and set it to C100, M20, Y0, K20 (as shown below). Before closing the dialog, set the Edge Pad option to 5 percent. Remove any outline properties from the shape.

- Create a second rectangle roughly 0.4 inches high (slightly less than half an inch) by 4 inches wide, and round the corners by 100 percent. Fill the new rectangle with white, remove any outline properties, and position it to center vertically with the first rectangle and slightly below the top edge (see below).

- Choose the Interactive Transparency Tool and drag vertically from the top edge to the bottom of the white rectangle to apply a default linear transparency effect (see below). Use the Property Bar to set the Edge Pad value to 8 percent.

- Choose the Pick Tool and duplicate the transparent rectangle by pressing the plus sign (+) key on your numeric keypad. Scale this new copy by dragging the center-bottom handle downward to just above the bottom edge of the arrangement. Set the fill color of this new object to 100 percent Cyan by clicking the Cyan well in the onscreen color palette.
- Choose the Interactive Transparency Tool and drag upward vertically from slightly below the bottom edge to a point halfway up the shape's height. To soften the effect slightly, drag from your CMYK palette 60 percent black well onto the white transparency marker. To complete the effect, set the Transparency Operation option on the Property Bar to Add. Select, and group your objects together (Ctrl+G). The button is virtually complete (see below).




To make the button interactive, you can add a realistic rollover effect. Because you're simulating the effect of three-dimensional objects with realistic lighting, adding shadows is the next logical step. In these next steps, we'll use the Internet Toolbar to convert the button to a rollover and edit the button states.
- Using the button design you created in the previous step sequence, choose the Pick Tool, and ungroup (Ctrl+U) the button shapes you grouped together in the previous steps.
- Choose the Interactive Drop Shadow Tool, and click your pill-shaped rectangle. Hold Ctrl, and drag from the center of the shape downward to apply a drop shadow at default settings. Use the Property Bar options to set the shadow X offset to 0 and the Y offset to –0.03 inches (a negative value). Set your Drop Shadow Opacity to 80 and the Feathering to 7. Set the shadow color to the base color of your button — in this case, cyan (see below).

- Select all objects in the arrangement, and open the Internet Toolbar by choosing Window > Toolbars > Internet. Click the Create Rollover button (shown below) to convert the entire button arrangement into a rollover button. Be sure the Live Preview of Rollovers button is toggled to the "off" state.

- Click the Edit Rollover button on the Internet toolbar to set the active rollover state to Normal, as indicated by both the toolbar option and the page tabs at the bottom of your document window (see below). We've already created the basic button, so we're going to leave the Normal state unchanged.

- To switch to the mouse-over state, choose Over from the Active Rollover State selector on the Internet Toolbar. Select your button text, and change its color. In my case, I've simulated a brightening effect by changing the text fill from black to white, as shown below.

- Switch to the mouse-down editing state by choosing Down from the Active Rollover State selector. Using the Pick Tool, click to select the drop shadow, and choose Effects > Clear Drop Shadow to remove it.
- While still in the Down editing state, select all objects in the arrangement, and open the Transformation docker to the Position tab by choosing Arrange > Transformations > Position (Alt+F7). Enter 0 in the H box and -0.03 in the V box (see below), and click the Apply button. This action offsets the entire button by the same offset as the shadow.

- Close the Transformation docker, and click the Finish Editing Rollover button on the Internet Toolbar. Your rollover is complete.
0 comments:
Post a Comment