Platforms to show: All Mac Windows Linux Cross-Platform

Back to CGColorMBS class.

CGColorMBS.Alpha as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreGraphics MBS MacCG Plugin 4.3 ✅ Yes ❌ No ❌ No ✅ Yes All
The alpha value of the color.

CGColorMBS.ColorSpace as CGColorSpaceMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreGraphics MBS MacCG Plugin 4.3 ✅ Yes ❌ No ❌ No ✅ Yes All
The colorspace of this color.

May be nil if unkown.

CGColorMBS.Components as memoryblock

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreGraphics MBS MacCG Plugin 4.3 ✅ Yes ❌ No ❌ No ✅ Yes All
The components of the color as a memoryblock.

The memoryblock contains double properties.
m.double(0), m.double(4), etc.

CGColorMBS.Copy as CGColorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreGraphics MBS MacCG Plugin 4.3 ✅ Yes ❌ No ❌ No ✅ Yes All
Creates a copy of the color.

Returns nil on any error.

CGColorMBS.CopyWithAlpha(alpha as Double) as CGColorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreGraphics MBS MacCG Plugin 4.3 ✅ Yes ❌ No ❌ No ✅ Yes All
Makes a new copy of the color with a different alpha value.

Returns nil on any error.

CGColorMBS.Equal(secondColor as CGColorMBS) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreGraphics MBS MacCG Plugin 4.3 ✅ Yes ❌ No ❌ No ✅ Yes All
True if both colors have equal values.

False on any error.

CGColorMBS.NumberOfComponents as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreGraphics MBS MacCG Plugin 4.3 ✅ Yes ❌ No ❌ No ✅ Yes All
The number of components.

Should be 3 for RGB and 4 for CMYK.

The items on this page are in the following plugins: MBS MacCG Plugin.


The biggest plugin in space...