---
name: "gcpBlendColor"
section: "3"
platform: "linux"
package: "libggigcp1-dev"
version: "1.0.2+dfsg1-2"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/gcpBlendColor"
---

# gcpBlendColor(3)

Color blending

## NAME

**gcpBlendColor** - Color blending

## SYNOPSIS

```
#include <ggi/gcp.h>
gcp_pixel gcpBlendColor(ggi_visual_t vis,
                        const gcp_pixel *pix1, const gcp_pixel *pix2,
                        uint16_t alpha);
```

## DESCRIPTION

**gcpBlendColor** blends *pix2* over *pix1* with the translucency *alpha*, with *pix1* as the background, *pix2* the forground. *alpha* is a 16bit translucency channel.

## RETURN VALUE

**gcpBlendColor** returns the resulting `gcp_pixel(3)` value.
