Browse docsps4.set_lightbar
On this page
API method

ps4.set_lightbar

Sends a DualShock 4 Remote Play light bar command, like ps4.lightbar, using one #RRGGBB/0xRRGGBB string (including rgb.* constants) or three 0 to 255 bytes.

Syntax

Atlas Script
ps4.set_lightbar(color_or_r, g?, b?)

Parameters

color_or_r
Either one Atlas RGB color value, or the red component when the separate green and blue arguments are also supplied.
g Optional
Green color component, normally in the documented byte range.
b Optional
Blue color component, normally in the documented byte range.

Return value

See the remarks for the returned value and runtime behavior.

Remarks

Sends a DualShock 4 Remote Play light bar command, like ps4.lightbar, using one #RRGGBB/0xRRGGBB string (including rgb.* constants) or three 0 to 255 bytes. Device support is required.

Examples

Usage pattern
// Replace color_or_r, g, b with values described above.
ps4.set_lightbar(color_or_r, g, b);
Reference details are generated from the Atlas Script schema in this documentation source snapshot. Confirm release-specific behavior in the Atlas for Windows build you use.