Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ fudge(3G) — GL2 W3.6

Media Vault

Software Library

Restoration Projects

Artifacts Sought

fudge(3G)  —  Silicon Graphics

NAME

fudge − specifies fudge values added to a graphics window

SPECIFICATION

C
fudge(xfudge, yfudge)
long xfudge, yfudge;

FORTRAN
subroutine fudge(xfudge, yfudge)
integer*4 xfudge, yfudge

Pascal
procedure fudge(xfudge, yfudge: longint);

DESCRIPTION

fudge specifies fudge values that are added to the dimensions of a graphics window when it is resized.  Typically, you use fudge to create window borders.  fudge is useful in conjunction with stepunit and keepaspect. 

With stepunit the window size for integers n and m is:

width = xunit∗n + xfudge
height = yunit∗m + yfudge

With keepaspect the window size is (w, h) where:

(w−xfudge)∗yaspect = (h−yfudge)∗xaspect

Call fudge at the beginning of a graphics program that runs under the window manager.  If you do not call winopen, or if the window manager is not running, the system ignores fudge. 
 

SEE ALSO

keepaspect, stepunit, winopen Using mex , Chapter 2, Programming with mex

NOTE

This routine is available only in immediate mode. 

Version 3.6  —  December 20, 1987

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