Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ rectangle(3G) — HP-UX 5.20

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

drawing_mode(3G)

fill_color(3G)

perimeter_color(3G)

perimeter_type(3G)

perimeter_repeat_length(3G)

polygon(3G)

write_enable(3G)

RECTANGLE(3G)

NAME

rectangle − define rectangular region to be filled and/or edged

SYNOPSIS

C Syntax:

void rectangle(fildes,x1,y1,x2,y2);
int fildes;
float x1,y1,x2,y2;

void dcrectangle(fildes,dcx1,dcy1,dcx2,dcy2);
int fildes,dcx1,dcy1,dcx2,dcy2;

FORTRAN77 Syntax:

subroutine rectangle(fildes,x1,y1,x2,y2)
integer*4 fildes
real x1,y1,x2,y2

subroutine dcrectangle(fildes,dcx1,dcy1,dcx2,dcy2)
integer*4 fildes,dcx1,dcy1,dcx2,dcy2

Pascal Syntax:

procedure rectangle(fildes:integer;x1,y1,x2,y2:real);

procedure dcrectangle(fildes,dcx1,dcy2,dcx2,dcy2:integer);

DESCRIPTION

Input Parameters

fildes Integer file descriptor returned by gopen when an I/O path to a graphics device is opened. 

x1,y1 First corner of the rectangle in World Coordinates. 

x2,y2 Second corner of the rectangle in World Coordinates. 

dcx1,dcy1 First corner of the rectangle in Device Coordinates. 

dcx2,dcy2 Second corner of the rectangle in Device Coordinates. 

Discussion

A boundary of a rectangular region is defined by defining diagonally opposite corners of the rectangle.  If the transform mode has been set to 3d, the z value used is that of the current position. 

The rectangle is filled and/or outlined according to the current interior style, using the current fill color and perimeter attributes.  As with all output primitives rectangle is affected by the current drawing mode and write enable. 

No clipping or transformations are performed on Device Coordinate procedures. 

Device Coordinate Current Pen Position and World Device Coordinate Current Pen Position are not related. If you are switching between the two coordinate systems, always begin the use of either system with a move to a known location before performing any other operations. 

SEE ALSO

drawing_mode(3G), fill_color(3G), perimeter_color(3G), perimeter_type(3G), perimeter_repeat_length(3G), polygon(3G), write_enable(3G). 

Hewlett-Packard Company  —  May 11, 2021

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026