From a447b02cc4a1f8376a380b039c7f37aa1768bc9e Mon Sep 17 00:00:00 2001 From: jameswilddev Date: Sun, 20 Dec 2020 16:00:12 +0000 Subject: [PATCH] Add alpha channel. --- api.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/api.md b/api.md index d13b335..f7d49aa 100644 --- a/api.md +++ b/api.md @@ -96,12 +96,20 @@ pointer within memory to a buffer of u8s. each u8 represents the intensity of a color channel for a pixel, where 0 is the minimum possible intensity and 255 is the maximum possible intensity. -runs through channels red, green and blue, then from left to right, then from -top to bottom. +runs through channels red, green, blue and alpha (opacity), then from left to +right, then from top to bottom. the host is to stop and raise an error should this not fit within memory, or overlap any other described memory region. +#### alpha/opacity + +although a channel exists for alpha/opacity, hosts must ignore it, and games +must leave its value to 255. + +currently, this channel only exists for memory alignment purposes, and may be +used in the future. + ### video_width pointer within memory to a u16.