Skip to main content

ColorCaptureSourceSettings

Electron APIs / recorder / ColorCaptureSourceSettings

Settings for capturing a solid color as a source.

Extends CaptureSourceSettings with color-specific options such as color value, width, and height.

See

CaptureSourceSettings

Extends

Properties

PropertyTypeDescription
colorstringColor in #AARRGGBB format. (alpha red green blue)
heightnumberHeight in pixels
name?stringUnique Source name (for easier identification).
stretchToOutputSize?booleanWhether the capture source should be centered and stretched to fit the output video size. When set to true, the source will automatically scale and center itself to match the output resolution, even if it requires stretching. Default true (if transform is not provided).
transform?SourceTransformOptionsTransform options for the source.
widthnumberWidth in pixels