single-pixel-buffer-v1: clarify create_u32_rgba_buffer

Signed-off-by: Caitlyn Stewart <caitlynrosestewart@gmail.com>
This commit is contained in:
Caitlyn Stewart 2025-06-03 01:37:06 +01:00 committed by Simon Ser
parent 3718d0077b
commit c855c8725b

View file

@ -58,6 +58,13 @@
pre-multiplied alpha.
The width and height of the buffer are 1.
The r, g, b and a arguments valid range is from UINT32_MIN (0)
to UINT32_MAX (0xffffffff).
These arguments should be interpreted as a percentage, i.e.
- UINT32_MIN = 0% of the given color component
- UINT32_MAX = 100% of the given color component
</description>
<arg name="id" type="new_id" interface="wl_buffer"/>
<arg name="r" type="uint" summary="value of the buffer's red channel"/>