Skip to content

Commit

Permalink
Add alpha channel.
Browse files Browse the repository at this point in the history
  • Loading branch information
jameswilddev committed Dec 20, 2020
1 parent c5aa76e commit a447b02
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit a447b02

Please sign in to comment.