logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

idraw - drawing editor

Description

       Idraw  is  a  drawing editor that lets you create and edit drawings made up of graphics like text, lines,
       splines, rectangles, polygons, and ellipses.  Drawings are stored in files  that  can  be  printed  on  a
       PostScript printer.  You can can open an existing drawing when starting up idraw by typing a file name on
       the command line.

       Idraw  displays  a portrait or landscape view of an 8.5 by 11 inch page in its drawingarea.  In a column
       along the drawing area's left side is a set of drawingtool icons, and above the drawing area is a set of
       pull-down menus containing commands.  A panner in the lower left corner lets you pan  and  zoom  the  the
       drawing area.  Along the top is a set of indicators that display editing information.

Drawing Tools

       You must engage a tool before you can use it.  You engage a tool by clicking on its icon or by typing the
       character  below  and  to  the right of its icon.  The icon of the drawing tool that's engaged appears in
       inverted colors.  Once engaged, you use the tool by clicking the left mouse button in the drawing area.

       The Select, Move, Scale, Stretch, Rotate, and Alter tools manipulate existing graphics.  Magnify makes  a
       part of the view expand to fill the entire view.  Text, Line, Multiline, OpenSpline, Ellipse, Rectangle,
       Polygon, and ClosedSpline create new graphics.  Each tool works as follows:

       Select         Select  a  graphic,  unselecting  all  others.   A  graphic is selected if its handles are
                      visible.  Handles are small inverse-video squares that  either  surround  the  graphic  or
                      demarcate  its  important  points  (such as the endpoints of a line). If you hold down the
                      shift key, Selectextends the selection: it selects the unselected graphic  (or  unselects
                      the  selected  graphic)  you  clicked on but does not unselect other selections.  Clicking
                      anywhere other than on a graphic unselects everything; you  may  also  drag  a  rubberband
                      rectangle  around  a group of graphics to select all of them at once.  Shortcut: the right
                      mouse button invokes Select while the mouse is in the drawing area.

       Move           Move graphics from one spot to another.  Shortcut: the middle mouse  button  invokes  Move
                      while the mouse is in the drawing area.

       Scale          Scale graphics about their centers.

       Stretch        Stretch graphics vertically or horizontally while tying down the opposite edge.

       Rotate         Rotate  graphics  about  their  centers  according to the angle between two radii: the one
                      defined by the original clicking point and the one defined by the current dragging point.

       Alter          Modify a graphic's structure.  This tool's effect is described below for each graphic.

       Magnify        Magnify a portion of the drawing specified by sweeping out a rectangular area.  Idraw will
                      magnify the area to occupy the entire screen, if possible.

       Text           Create some text.  Left-click to position the first line of text, and then  type  as  much
                      text  as  you  want.  You may use emacs-style keystrokes to edit the text as well as enter
                      it.  You can leave text editing mode by typing ESC or by simply clicking  somewhere  else.
                      The Alter tool lets you edit the text in an existing text graphic.

       Line           Create  a  line.   The  shift key constrains the line to lie on either the vertical or the
                      horizontal axis.  You may left-click with the Alter tool on either endpoint of a  line  to
                      move the endpoint to a new location.

       Multiline      Create  a  set of connected lines.  The shift key constrains each segment to lie on either
                      the vertical or the horizontal axis.  Each left-click starts a new segment (i.e.,  adds  a
                      vertex);  each right-click removes the last vertex added.  The middle button finalizes the
                      multiline.  The Alter tool lets you move,  add,  and  remove  vertices  from  an  existing
                      multiline.

       OpenSpline    Create an open B-spline.  The shift key constrains each control point to lie on either the
                      vertical  or the horizontal axis with the preceding point.  Each left-click adds a control
                      point; each right-click removes the last control point added.  The middle button finalizes
                      the spline.  The Alter tool lets you move, add, and remove control points from an existing
                      open spline.

       Ellipse        Create an ellipse.  The shift key constrains the ellipse to the shape of  a  circle.   The
                      Alter tool does not affect ellipses.

       Rectangle      Create a rectangle.  The shift key constrains the rectangle to the shape of a square.  The
                      Alter  tool  lets  you  move  the  rectangle's  corners independently to form a four-sided
                      polygon.

       Polygon        Create a polygon.  The shift key constrains each side to lie on either the vertical or the
                      horizontal axis.  Each left-click starts a new segment (i.e., adds a vertex); each  right-
                      click  removes the last vertex added.  The middle button finalizes the polygon.  The Alter
                      tool lets you move, add, and remove vertices from an existing polygon.

       ClosedSpline  Create a closed B-spline.  The shift key constrains each control point to  lie  on  either
                      the  vertical  or  the  horizontal  axis with the preceding point.  Each left-click adds a
                      control point; each right-click removes the last control point added.  The  middle  button
                      finalizes  the  spline.  The Alter tool lets you move, add, and remove control points from
                      an existing closed spline.

Name

       idraw - drawing editor

See Also

drawtool(1)

                                                                                                        idraw(1)

Synopsis

idraw [options] [file]

X Defaults

       You  can customize the number of undoable changes and the font, brush, pattern, or color menus by setting
       resources in your X defaults database.  Each string of  the  form  ``idraw.resource:definition''  sets  a
       resource.  For example, to customize any of the paint menus, set a resource given by the concatenation of
       the  menu's  name  and  the  entry's  number  (e.g.,  ``idraw.pattern8'') for each entry that you want to
       override.  All menus use the number 1 for the first entry.

       You must set resources only for the entries that you want to override, not all of them.  If you  want  to
       add  entries  to the menus, simply set resources for them.  However, don't skip any numbers after the end
       of the menu, because the menu will end at the first undefined resource.  To shorten  a  menu  instead  of
       extending it, specify a blank string as the resource for the entry following the last.

       Idraw understands the following resources:

       history        Set the maximum number of undoable changes (20 by default).

       initialfont    Specify the font that will be active on startup.  Supply a number that identifies the font
                      by its position in the Font menu starting from 1 for the first entry.

       fonti          Define  a  custom  font  to  use  for  the ith entry in the Font menu.  Give three strings
                      separated by whitespace.  The first string defines the font's name, the second string  the
                      corresponding   print   font,   and  the  third  string  the  print  size.   For  example,
                      ``idraw.font3:8x13bold Courier-Bold 13'' defines the third font entry.

       initialbrush   Specify the brush that will be active on startup.  Give a number that identifies the brush
                      by its position in the Brush menu starting from 1 for the first entry.

       brushi         Define a custom brush to use for the ith entry in the Brush menu.  The definition requires
                      two numbers: a 16-bit hexadecimal number to define the brush's  line  style  (each  1  bit
                      draws  a  dash and each 0 bit produces a gap), and a decimal integer to define the brush's
                      width in pixels.  For example, ``idraw.brush2:ffff 1'' defines a single pixel  wide  solid
                      line.  If  the  definition  specifies  only  the  string  ``none'',  then  it  defines the
                      nonexistent brush.

       initialpattern Specify the pattern that will be active on startup.  Give a  number  that  identifies  the
                      pattern by its position in the Pattern menu starting from 1 for the first entry.

       patterni       Define a custom pattern to use for the ith entry in the Pattern menu.  You can specify the
                      pattern from a 16x16 bitmap, a 8x8 bitmap, a 4x4 bitmap, a grayscale number, or the string
                      ``none''.   You  specify the 16x16 bitmap with sixteen 16-bit hexadecimal numbers, the 8x8
                      bitmap with eight  8-bit  hexadecimal  numbers,  the  4x4  bitmap  with  a  single  16-bit
                      hexadecimal  number,  and  the  grayscale number with a single floating point number.  The
                      floating point number must  contain  a  period  to  distinguish  itself  from  the  single
                      hexadecimal  number, and it must lie between 0.0 and 1.0, where 0.0 corresponds to a solid
                      pattern and 1.0 to a clear pattern.   On  the  printer,  the  bitmap  patterns  appear  as
                      bitmaps,  the  grayscale  patterns  appear  as halftoned shades, and the ``none'' patterns
                      never obscure any underlying graphics.  For  example,  ``idraw.pattern8:8421''  defines  a
                      diagonally hatched pattern.

       initialfgcolor Specify  the  foreground  color  that  will  be  active  on  startup.   Give a number that
                      identifies the color by its position in the FgColor menu starting from  1  for  the  first
                      entry.

       fgcolori       Define  a  custom  color  to  use  for  the  ith entry in the FgColor menu.  Give a string
                      defining the name of the color and optionally three decimal numbers between  0  and  65535
                      following the name to define the red, green, and blue components of the color's intensity.
                      The intensities override the name; that is, idraw will look the name up in a window system
                      database of common colors only if you omit the intensities.  You can define shades of gray
                      by  using  equal  proportions of each primary color.  For example, ``idraw.fgcolor8:Indigo
                      48896 0 65280'' defines a color that is a mixture of red and blue.

       initialbgcolor Specify the background color  that  will  be  active  on  startup.   Give  a  number  that
                      identifies  the  color  by  its position in the BgColor menu starting from 1 for the first
                      entry.

       bgcolori       Define a custom color to use for the ith entry in the BgColor menu.  The same rules  apply
                      to background colors as to foreground colors.

See Also