---
name: "glBlendColor"
section: "3x"
platform: "linux"
package: "xlibmesa-gl-dev"
version: "4.3.0.dfsg.1-14sarge7"
release: "Debian 3.1 (Sarge)"
platforms: ["linux"]
url: "https://new.carta.tech/glBlendColor"
---

# glBlendColor(3x)

set the blend color

## NAME

**glBlendColor** - set the blend color

## C SPECIFICATION

void **glBlendColor**( GLclampf *red*,

```
	GLclampf green,
	GLclampf blue,
	GLclampf alpha )
```

delim $$

## PARAMETERS

- *red*, *green*, *blue*, *alpha*

  specify the components of **GL\_BLEND\_COLOR**

## DESCRIPTION

The **GL\_BLEND\_COLOR** may be used to calculate the source and destination blending factors. The color components are clamped to the range \[0, 1\] before being stored. See **glBlendFunc** for a complete description of the blending operations. Initially the **GL\_BLEND\_COLOR** is set to (0, 0, 0, 0).

## NOTES

**glBlendColor** is part of the **GL\_ARB\_imaging** subset. **glBlendColor** is present only if **GL\_ARB\_imaging** is returned when **glGetString** is called with **GL\_EXTENSIONS** as its argument.

## ERRORS

**GL\_INVALID\_OPERATION** is generated if **glBlendColor** is executed between the execution of **glBegin** and the corresponding execution of **glEnd**.

## ASSOCIATED GETS

**glGet** with an argument of **GL\_BLEND\_COLOR**

## SEE ALSO

**glBlendEquation(3G)**, **glBlendFunc(3G)**, **glGetString(3G)**
