unixdev.net


Switch to SpeakEasy.net DSL

The Modular Manual Browser

Home Page
Manual: (SunOS-4.1.3)
Page:
Section:
Apropos / Subsearch:
optional field

DRAW(6)                          Games Manual                          DRAW(6)



NAME
       draw, bdraw, cdraw - interactive graphics drawing

SYNOPSIS
       /usr/demo/bdraw
       /usr/demo/cdraw

DESCRIPTION
       The  draw  programs  are menu-driven programs which use the mouse, key-
       board, bitmap display and optionally the color display to draw objects,
       drag them around, save them on disk, and so on.  bdraw is the draw pro-
       gram for the black and white display and cdraw is the program for driv-
       ing the color display.

       The  main menu items are selected by moving the mouse cursor and press-
       ing the left mouse button.  To redraw the display, point  at  the  left
       edge  of  the  main  menu box and press the left button.  The main menu
       items are:

       New Seg xlate
                 Open a new translatable segment. A segment is a collection of
                 attributes  and  primitives (lines, text, polygons, etc.).  A
                 translatable segment may subsequently be positioned.

       New Seg xform
                 Open a new transformable segment.   A  transformable  segment
                 may subsequently be rotated, scaled, or positioned.

       Delete Seg
                 To  delete  a  segment, point at any primitive in the segment
                 and press the left button.

       Lines     To add line primitives to the currently open  segment,  posi-
                 tion cursor, press the left button, ... press right button to
                 quit.

       Polygon   To add a polygon primitive to  the  currently  open  segment,
                 position  the  cursor,  press  the left button, ... press the
                 right button to terminate the boundary definition.   Polygons
                 are filled with the current fill attribute.

       Raster    To  add  a  raster  primitive  to the currently open segment,
                 position the cursor, press the left button to reposition  the
                 box, adjust the box by moving the mouse, press the right but-
                 ton to create the raster primitive comprising the boxed  bit-
                 map.   A  `rasterfile'  is  also created on disk for hardcopy
                 purposes (see /usr/include/rasterfile.h).  This  `rasterfile'
                 file  may be spooled to a Versatec printer/plotter for  hard-
                 copy after exiting from the draw program.  The command to  do
                 this is lpr  -v  rasterfile.

       Text      To  add a text primitive to the currently open segment, posi-
                 tion cursor, press left button, type the text string  at  the
                 keyboard  (back space works), hit return.  Text is drawn with
                 the current text attributes.

       Marker    To add marker primitives to the currently open segment, posi-
                 tion cursor, press the left button to place marker, ... press
                 the right button to quit.

       Position  To position a segment, point at any primitive in the segment,
                 press  left  button, position the segment, press right button
                 to quit.

       Rotate    To rotate a transformable segment, point at any primitive  in
                 the  segment,  press left button, move mouse to rotate, press
                 right button to quit.

       Scale     To scale a transformable segment, point at any  primitive  in
                 the  segment, press the left button, move mouse to scale in x
                 or y, press right button to quit.

       Attributes
                 This item  brings  up  the  attribute  menu.   To  select  an
                 attribute  such  as  text  font, region fill texture (color),
                 linestyle, or line width, point at the  item  and  press  the
                 left button.  Point at the left edge of the menu box to quit.

       Save Seg  To save a segment on a disk file, point at the segment, press
                 the left button, type the disk file name, hit return.

       Restore Seg
                 To restore a previously saved segment from  disk,  type  file
                 name, hit return.

       Exit      Exit the draw program.

BUGS
       Rasters and raster text do not scale or rotate.  If segments completely
       overlap, only the last one drawn may be picked  by  pointing  with  the
       mouse.  This also applies to the menu segments!  Therefore, don't cover
       them up with polygons.  If aborted with your interrupt  character,  you
       must  give  the  `reset'  command  to turn keyboard echo back on and to
       reset -cbreak.  Therefore, use the Exit item in the main menu  to  exit
       the program.



4th Berkeley Distribution        8 March 1984                          DRAW(6)