home *** CD-ROM | disk | FTP | other *** search
- /* DPaint Beveled Edge Macro By Doug Shannon
- * (c) 1994 Electronic Arts
- *
- * Paints a beveled edge effect with your current brush
- *
- * To Use:
- * Position your brush in the position where you want the
- * To occur. Execute the Macro from the keyboard.
- *
- * How It Works:
- * This Macro uses Translucency to draw the highlights
- * (with white), and shadows (with black) over the original.
- * It then stamps the original in the middle
- */
- level=50 /* This number is the amount of Translucency to use *
- * The lower the number, the closer to solid the highlights *
- * and shadows will be. In low color modes, use a level of 1 *
- * and make sure that you have colors close to white and *
- * black in your palette. */
-
- BevX=1 /* This number is the amount of Bevel for X (in pixels) */
- BevY=1 /* This number is the amount of Bevel for Y (in Pixels) */
- /* You can adjust the X and Y independently for resolutions *
- * other than 1:1. To make the bevel inward, change these *
- * numbers to negatives. */
-
- Address Dpaint.1
- options results
-
- screentofront
-
- /* Memorize current X and Y coords */
- getcoord x
- mx=result
- getcoord y
- my=result
-
- lockgui
-
- /* Setup */
-
- Dotted
- Matte
-
- /* Paint Base Originals */
- Translucency OFF
- MoveTo (mx-bevx) (my-bevy)
- LeftMouse click
- MoveTo (mx) (my)
- LeftMouse Click
- MoveTo (mx+bevx) (my+bevy)
- LeftMouse click
-
-
- /* Paint Highlights */
- SetTranslucency level
- Translucency On
- Color
- ClosestColor 255 255 255
- SetFGColor RESULT
- MoveTo (mx-bevx) (my-bevy)
- LeftMouse Click
-
- /* Paint Shadows */
- ClosestColor 0 0 0
- SetFGColor RESULT
- MoveTo (mx+bevx) (my+bevy)
- LeftMouse Click
-
- /* Paint Original (centered) */
- Matte
- Translucency Off
- Moveto (mx) (my)
- LeftMouse Click
-
-
- unlockgui
-
-