Differences

This shows you the differences between two versions of the page.

Link to this comparison view

desktop:colors [2019/10/11 14:52]
agcyphers created
desktop:colors [2019/10/11 15:11] (current)
agcyphers
Line 1: Line 1:
 ==== See Also ==== ==== See Also ====
 [[desktop:​colors:​bootstrap|GraffitiColors.Bootstrap]] [[desktop:​colors:​bootstrap|GraffitiColors.Bootstrap]]
 +[[desktop:​colors:​macos|GraffitiColors.MacOS]]
 +[[desktop:​colors:​material|GraffitiColors.Material]]
 +[[desktop:​colors:​named|GraffitiColors.Named]]
 +[[desktop:​colors:​palettes|GraffitiColors.Palettes]]
 +[[desktop:​colors:​systemaware|GraffitiColors.SystemAware]]
 +[[desktop:​colors:​windows|GraffitiColors.Windows]]
  
 ==== Enumerations ==== ==== Enumerations ====
Line 12: Line 18:
 ==== Events ==== ==== Events ====
 ^ Definition ​     ^ Description ​      ^ ^ Definition ​     ^ Description ​      ^
-This class exposes no events.+| Blend(background as Color, foreground as Color) | Blends two colors together by overlaying foreground onto background then returning the resulting mix
 +| Brighten(c as Color, DeltaPercent as Integer) | Brightens a color by modifying each constituent RGB value by DeltaPercent. | 
 +| Complement(c as Color) | Returns a color whose hue is calculated to complement the passed value. | 
 +| ComplementReadable(c as Color) | Returns the readable complement of the passed value. Return is black or white. | 
 +| Darken(c as Color, DeltaPercent as Double) | Darkens a color modifying its brightness (Color.Value in Xojo). | 
 +| DarkerColor(color1 as Color, color2 as Color) | Returns the darker of the two passed colors. | 
 +| Desaturate(c as Color, DeltaPercent as Double) | Desaturated the passed color by DeltaPercent. | 
 +| FromHex(hexValue as String) | Parses a HEX-3, HEX-6, or HEX-8 value to a Xojo Color object. | 
 +| GetBrightness(c as Color) | Returns the double-value brightness for the specified color. | 
 +| GetContrast(color1 as Color, color2 as Color) | Returns the double-value contrast difference between two colors. | 
  
 ==== Methods ==== ==== Methods ====