spiegel-keyman/web/docs/engine/reference/util/rgba.md
Marc Durdin 1f82507730 docs(web): deprecate unused and obsolete API endpoints and docs cleanup
Deprecate the following obsolete functions and properties:
* `keyman.helpURL`
* `keyman.util.rgba`
* `keyman.util.toFloat`
* `keyman.util.toNumber`
* `keyman.util.toNzString`

Use correct language for code blocks in Keyman Engine for Web
documentation.

Test-bot: skip
2026-08-12 16:07:22 +02:00

788 B

title
rgba (deprecated)

Summary

Browser-independent alpha-channel management.

Syntax

keyman.util.rgba(s, r, g, b, a);

Parameters

s
Type: Element
Element style object
r
Type: number
Value for red (0-255)
g
Type: number
Value for green (0-255)
b
Type: number
Value for blue (0-255)
a
Type: number
Value for alpha/opacity (0-1.0)

Return Value

string
Background color CSS value.

Description

This function returns the required string value for setting background transparency, and applies an appropriate a filter to the element for IE versions before IE9.

This function has been deprecated and will be removed in a future version of KeymanWeb.

History

19.0: deprecated