---
Product: Aspose.PDF
Platform: net
Page Type: reference
Canonical URL: https://reference.aspose.org/pdf/net/Color-Drawing
---

# Color

## Overview

`Color` is a class in Aspose.PDF FOSS for .NET.

Color for drawing shapes.

This class provides 4 methods for working with Color objects in .NET programs.
Available methods include: `Color`, `FromRgb`, `Parse`.
All public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package.
Properties: `Aqua`, `B`, `Black`, `Blue`, `G`, `Gray`, and 9 more.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `R` | `double` | Read | Gets the r. |
| `G` | `double` | Read | Gets the g. |
| `B` | `double` | Read | Gets the b. |
| `PatternColorSpace` | `GradientAxialShading?` | Read/Write | Optional gradient/pattern color space. |
| `Black` | `Color` | Read | Gets the black. |
| `White` | `Color` | Read | Gets the white. |
| `Red` | `Color` | Read | Gets the red. |
| `Green` | `Color` | Read | Gets the green. |
| `Blue` | `Color` | Read | Gets the blue. |
| `Purple` | `Color` | Read | Gets the purple. |
| `Gray` | `Color` | Read | Gets the gray. |
| `LightGray` | `Color` | Read | Gets the light gray. |
| `Tomato` | `Color` | Read | Gets the tomato. |
| `Yellow` | `Color` | Read | Gets the yellow. |
| `Aqua` | `Color` | Read | Gets the aqua. |

## Methods

| Signature | Description |
|-----------|-------------|
| `Color()` | Calls Color on this Color instance. |
| `Color(r: double, g: double, b: double)` |  |
| `FromRgb(r: int, g: int, b: int)` | Calls FromRgb on this Color instance. |
| `Parse(hex: string)` | Parse a hex color string like "#RRGGBB" or "#RGB". |

## See Also

- [Aspose.PDF for .NET — Enterprise API Reference](https://reference.aspose.com/pdf/net/)