# GraffitiColors
Module
## Members
- [MacOS](/macos.md)
- [Named](/named.md)
- [Material](/material.md)
- [Bootstrap](/bootstrap)
- [Palettes](/palettes.md)
- [SystemAware](/systemaware.md)
- [Windows](/windows)
- [iOS](/ios.md)
## Compatibility
### Framework API Version
| 1.0 | 2.0 |
| :---: | :---: |
| True | True |
### Desktop
| 32-Bit | 64-Bit |
| :---: | :---: |
| True | True |
### iOS
| 32-Bit | 64-Bit |
| :---: | :---: |
| False | True |
## Methods
| Name | Parameters | Return Type | Description |
| --- | :---: | :---: | --- |
| Protected | Function | background as Color, foreground as Color | Blends two colors together by overlaying foreground onto background then returning the resulting mix. |
| Protected | Function | c as Color, DeltaPercent as Integer | Brightens a color by modifying each constituent RGB value by DeltaPercent. |
| Protected | Function | color1 as Color, color2 as Color | Returns the cartesian (or Euclidian) distance between two color calues. |
| Protected | Function | c as Color | Returns a color whose hue is calculated to complement the passed value. |
| Protected | Function | c as Color | Returns the readable complement of the passed value. Return is black or white. |
| Protected | Function | c as Color, DeltaPercent as Double | Darkens a color modifying its brightness (Color.Value in Xojo). |
| Protected | Function | color1 as Color, color2 as Color | Returns the darker of the two passed colors. |
| Protected | Function | c as Color, DeltaPercent as Double | Desaturated the passed color by DeltaPercent. |
| Protected | Function | hexValue as String | Parses a HEX-3, HEX-6, or HEX-8 value to a Xojo Color object. |
| Protected | Function | rgbValue as String | Returns a color from a string matching the format rgba(0,0,0,1.0). |
| Protected | Function | c as Color | Returns the double-value brightness for the specified color. |
| Protected | Function | color1 as Color, color2 as Color | Returns the double-value contrast difference between two colors. |
| Protected | Function | color1 as Color, color2 as Color | Returns the cartesian distance between two colors. |
| Protected | Function | c as Color | Returns the calculate luminance of the color. |
| Protected | Function | c as Color, DeltaPercent as Double | Returns the passed color value with altered hue. |
| Protected | Function | c as Color | Inverts the passed color. |
| Protected | Function | c as Color | Returns True if the color's calculated brightness is less than 128. |
| Protected | Function | c as Color | Returns True if the color's calculated brightness is greater than 128. |
| Protected | Function | color1 as Color, color2 as Color | Returns True if text using one color as the background and the other as foreground is readable. |
| Protected | Function | color1 as Color, color2 as Color | Returns True if text using one color as the background and the other as foreground is readable. |
| Protected | Function | color1 as Color, color2 as Color | Returns True if text using one color as the background and the other as foreground is readable. |
| Protected | Function | c as Color, DeltaPercent as Double | Lightens the specified color by DeltaPercent. |
| Protected | Function | color1 as Color, color2 as Color | Returns the lighter of the two passed colors. |
| Protected | Function | color1 as Color, color2 as Color, DeltaPercent as Double | Mixes the two colors together. |
| Protected | Function | c as Color | Returns a monochrome version of the color. |
| Protected | Function | c as Color, compare() as Color | Returns the most readable complement color from the array. |
| Protected | Function | c as Color, ParamArray compare as Color | Returns the most readable complement color from the array. |
| Protected | Function | c as Color | Returns a Dictionary object containing the “name” and “value” keys for the closest Named color to the one specified. |
| Protected | Function | randomizeAlphaChannel as Boolean = False | Returns a random color. |
| Protected | Function | c as Color, DeltaPercent as Double | Returns a saturation-altered value of the passed color. |
| Protected | Function | c as Color, value as Integer | Returns a new color value with the alpha channel value set the value specified. |
| Protected | Function | c as Color | Returns a HEX string of the color's RGB values. |
| Protected | Function | c as Color | Returns a HEX8 string of the color's RGBA value. |
| Protected | Function | c as Color | Returns a web-compatible RGBA string representation of the color. |
| Protected | Function | c as Color | Returns a Xojo-compatible RGBA string representation of the color. |
| Protected | Function | c as Color | Returns an RGB string representation of the color. |