getRGB method

dynamic getRGB(
  1. dynamic target, [
  2. String colorSpace = LinearSRGBColorSpace
])

Implementation

getRGB( target, [String colorSpace = LinearSRGBColorSpace] ) {

		ColorManagement.fromWorkingColorSpace( toComponents( this, _rgb ), colorSpace );

		target.r = _rgb["r"];
		target.g = _rgb["g"];
		target.b = _rgb["b"];

		return target;

	}