Action that converts colors between different formats (HEX, RGB, HSL, HSV). Supports standard color names and provides complementary color calculations.

Example

// Convert HEX to other formats
await runAction({
ActionName: 'Color Converter',
Params: [{
Name: 'Color',
Value: '#FF5733'
}]
});

// Convert RGB to other formats
await runAction({
ActionName: 'Color Converter',
Params: [{
Name: 'Color',
Value: 'rgb(255, 87, 51)'
}]
});

// Use color names
await runAction({
ActionName: 'Color Converter',
Params: [{
Name: 'Color',
Value: 'navy'
}]
});

Hierarchy (view full)

Constructors

Properties

namedColors: Record<string, string> = ...

Methods

  • Executes the action with the provided parameters.

    Parameters

    • params: RunActionParams<any>

      The action execution parameters including context

    Returns Promise<ActionResultSimple>

    Promise resolving to the action result