---
name: "PS_makespotcolor"
section: "3"
platform: "linux"
package: "pslib-dev"
version: "0.4.8-1+b1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/PS_makespotcolor"
---

# PS\_makespotcolor(3)

Create a spotcolor

## NAME

PS\_makespotcolor — Create a spotcolor

## SYNOPSIS

\#include \<pslib.h\>

int PS\_makespotcolor(PSDoc \*psdoc, const char \*name, int reserved)

## DESCRIPTION

Creates a spot color from the current fill color. The fill color  must be a gray, rgb, or cmyk color. The spot color id returned by  this functions must be passed to **[PS\_setcolor(3)](/PS_setcolor/3.md)** 			as the fourth parameter.

## RETURN VALUE

The id of the new spot color or 0 in case of an error.

## SEE ALSO

[PS\_setcolor(3)](/PS_setcolor/3.md)

## AUTHOR

This manual page was written by Uwe Steinmann uwe@steinmann.cx.
