ColorResolved
A concrete color value.
Declaration
type ColorResolved = { colorSpace?: ColorRGBColorSpace; red: number; green: number; blue: number; opacity?: number; };@frozen struct ResolvedProperties
colorSpaceColorRGBColorSpacered*numberThe amount of red in the color in the sRGB color space.
green*numberThe amount of green in the color in the sRGB color space.
blue*numberThe amount of blue in the color in the sRGB color space.
opacitynumberThe degree of opacity in the color, given in the range
0to1.
Overview
Color.Resolved is a set of RGBA values that represent a color
that can be shown. The values are stored in the Linear sRGB
color space, using extended range. This is a low-level type,
most colors are represented by the Color type.
- SeeAlso:
Color.ResolvedHDR,Color.
From Apple’s SwiftUI documentation. Code samples there are Swift.
Used by
See also
More in Appearance.
- BackgroundProminenceThe prominence of backgrounds underneath other views.
- BadgeProminenceThe visual prominence of a badge.
- ButtonSizingThe sizing behavior of Buttons and other button-like controls.
- ColorA representation of a color that adapts to a given context.
- ColorRenderingModeThe set of possible working color spaces for color-compositing operations.
- ColorResolvedHDRA concrete color value, including HDR headroom information.
- ColorRGBColorSpaceA profile that specifies how to interpret a color value for display.
- ColorSchemeThe possible color schemes, corresponding to the light and dark appearances.
- GlassA structure that defines the configuration of a physical glass material.
- GlassChainGlass with chained calls: SwiftUI.Glass.interactive(...).
- ImageScaleA scale to apply to vector images relative to text.
- ProminenceA type indicating the prominence of a view hierarchy.