PS_SHADING(3) 1 PS_SHADING(3)ps_shading - Creates a shading for later useSYNOPSIS
int ps_shading (resource $psdoc, string $type, float $x0, float $y0, float $x1, float $y1, float $c1, float $c2, float $c3, float
$c4, string $optlist)
DESCRIPTION
Creates a shading, which can be used by ps_shfill(3) or ps_shading_pattern(3).
The color of the shading can be in any color space except for pattern.
PARAMETERS
o $psdoc
- Resource identifier of the postscript file as returned by ps_new(3).
o $type
- 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).
o $x0, x1, y0, y1
- The coordinates $x0, $y0, $x1, $y1 are the start and end point of the shading. If the type of shading is radial the two points
are the middle points of a starting and ending circle.
o $c1, c2, c3, c4
- See ps_setcolor(3) for their meaning.
o $optlist
- If the shading is of type radial the $optlist must also contain the parameters r0 and r1 with the radius of the start and end
circle.
RETURN VALUES
Returns the identifier of the pattern or FALSE on failure.
SEE ALSO ps_shading_pattern(3), ps_shfill(3).
PHP Documentation Group PS_SHADING(3)
Check Out this Related Man Page
PS_MAKESPOTCOLOR(3) 1 PS_MAKESPOTCOLOR(3)ps_makespotcolor - Create spot colorSYNOPSIS
int ps_makespotcolor (resource $psdoc, string $name, [int $reserved])
DESCRIPTION
Creates a spot color from the current fill color. The fill color must be defined in rgb, cmyk or gray colorspace. The spot color name can
be an arbitrary name. A spot color can be set as any color with ps_setcolor(3). When the document is not printed but displayed by an post-
script viewer the given color in the specified color space is use.
PARAMETERS
o $psdoc
- Resource identifier of the postscript file as returned by ps_new(3).
o $name
- Name of the spot color, e.g. Pantone 5565.
RETURN VALUES
The id of the new spot color or 0 in case of an error.
EXAMPLES
Example #1
Creating and using a spot color
<?php
$ps = ps_new();
if (!ps_open_file($ps, "spotcolor.ps")) {
print "Cannot open PostScript file
";
exit;
}
ps_set_info($ps, "Creator", "spotcolor.php");
ps_set_info($ps, "Author", "Uwe Steinmann");
ps_set_info($ps, "Title", "Spot color example");
ps_begin_page($ps, 596, 842);
ps_setcolor($ps, "fill", "cmyk", 0.37, 0.0, 0.34, 0.34);
$spotcolor = ps_makespotcolor($ps, "PANTONE 5565 C", 0);
ps_setcolor($ps, "fill", "spot", $spotcolor, 0.5, 0.0, 0.0);
ps_moveto($ps, 100, 100);
ps_lineto($ps, 100, 200);
ps_lineto($ps, 200, 200);
ps_lineto($ps, 200, 100);
ps_lineto($ps, 100, 100);
ps_fill($ps);
ps_end_page($ps);
ps_delete($ps);
?>
This example creates the spot color "PANTONE 5565 C" which is a darker green (olive) and fills a rectangle with 50% intensity.
SEE ALSO ps_setcolor(3).
PHP Documentation Group PS_MAKESPOTCOLOR(3)
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)
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)
In C++, how can I change the type with another name
For example
How can I declaring an object real which would be the same as declaring it float (5 Replies)