PS_begin_pattern(3)

PS_begin_pattern3

Starts a new pattern

Usage

#include <pslib.h>

int PS_begin_pattern(PSDoc *psdoc, float width, float height, float xstep, float ystep, int painttype)

Overview

A pattern can be thought of like a color for drawing and filling. Actually, PS_setcolor is used to apply a pattern. The pattern itself has given dimension an a stepping in horizontal and vertical direction. The stepping comes into effect when the area to be fill is larger than the pattern itself. In such a case the pattern will be repeated with a distance of xstep in horizontal and ystep in vertical direction.

Each call of PS_begin_pattern must be accompanied by a call to PS_end_pattern(3).

Return value

Returns identifier of the pattern or zero in case of an error. The identifier is a positiv number greater 0.

Releases

11 releases since Debian 3.1 (Sarge); the text changed 6 times.

  1. 3.1
  2. 4.0
  3. 5.0
  4. 6.0
  5. 7
  6. 8
  7. 9–13

Author

This manual page was written by Uwe Steinmann [email protected].

From pslib-dev 0.4.8-1+b1 in Debian 13 (Trixie). Parsed by carta from the page's man source.