Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

ps_shading(3) [debian man page]

PS_SHADING(3)						     Library Functions Manual						     PS_SHADING(3)

NAME
PS_shading -- Create shading SYNOPSIS
#include <pslib.h> int PS_shading(PSDoc *psdoc, const char *shtype, float x0, float y0, float x1, float y1, float c1, float c2, float c3, float c4, const char *optlist) DESCRIPTION
This function creates a shading which can be used by PS_shfill(3) or PS_shading_pattern(3). The type of shading can be either `radial' or `axial'. Each shading starts with the current fill color and ends with the given color values passed in the parameters c1 to c4 (see PS_setcolor(3) for their meaning). The coordinates x0, y0, x1, y1 are the start and end point of the shading. If the shading is of type `radial' the option list must also contain the parameters r0 and r1 with the radius of the start and end circle. The color of the shading can be in any color space except for `pattern'. RETURN VALUE
Returns the identifier of the shading or zero in case of an error. The identifier is a positiv number. SEE ALSO
PS_shfill(3), PS_shading_pattern(3) AUTHOR
This manual page was written by Uwe Steinmann uwe@steinmann.cx. PS_SHADING(3)

Check Out this Related Man Page

PS_SETCOLOR(3)								 1							    PS_SETCOLOR(3)

ps_setcolor - Sets current color

SYNOPSIS
bool ps_setcolor (resource $psdoc, string $type, string $colorspace, float $c1, float $c2, float $c3, float $c4) DESCRIPTION
Sets the color for drawing, filling, or both. PARAMETERS
o $psdoc - Resource identifier of the postscript file as returned by ps_new(3). o $type - The parameter $type can be both, fill, or fillstroke. o $colorspace - The colorspace should be one of gray, rgb, cmyk, spot, pattern. Depending on the colorspace either only the first, the first three or all parameters will be used. o $c1 - Depending on the colorspace this is either the red component (rgb), the cyan component (cmyk), the gray value (gray), the iden- tifier of the spot color or the identifier of the pattern. o $c2 - Depending on the colorspace this is either the green component (rgb), the magenta component (cmyk). o $c3 - Depending on the colorspace this is either the blue component (rgb), the yellow component (cmyk). o $c4 - This must only be set in cmyk colorspace and specifies the black component. BUGS
The second parameter is currently not always evaluated. The color is sometimes set for filling and drawing just as if fillstroke were passed. RETURN VALUES
Returns TRUE on success or FALSE on failure. PHP Documentation Group PS_SETCOLOR(3)
Man Page

5 More Discussions You Might Find Interesting

1. Programming

matrix pointer

Can anyone tell me what the following statements do? float (*tab); tab=(float (*)) calloc(MAXCLASS, (MAXCLASS+1)*sizeof(float)); (3 Replies)
Discussion started by: littleboyblu
3 Replies

2. UNIX for Dummies Questions & Answers

merge lines within a file that start with a similar pattern

Hello! i have a text file.. which contains the data as follows i want to merge the declarations lines pertaining to one datatype in to a single line as follows i've searched the forum for help.. but couldn't find much help.. how can i do this?? (1 Reply)
Discussion started by: a_ba
1 Replies

3. Red Hat

What is float IP?

:confused:We have two servers one active and one stand by as follows Active 202.61.9.9 Stand by 202.61.9.10 Float IP 202.61.9.8 What is use of this float IP? How it is configured? (1 Reply)
Discussion started by: manalisharmabe
1 Replies

4. Programming

passing float parameter

I am surprised by GCC (this is ver. 4.2.4, Ubuntu 32 bit Intel) when a function declares a float parameter and it's prototype is missing, the parameters are messed up. Please see my code below: ~/test$ cat x1.c #include <stdio.h> #include <stdlib.h> set_p(int p1, float p2, int p3, int p4)... (7 Replies)
Discussion started by: migurus
7 Replies

5. Shell Programming and Scripting

Deliver values to Thread function

Hello, I hope you can help me with my problem. I've written a programm which creates a thread. The main programmm creates 10 int and float values. The fucnction should give the values out. May big problem ist that the delivery to the function is not working. Where ist my fault? How can I make... (1 Reply)
Discussion started by: jimm_the_h
1 Replies