From ca551c1700cf982fe96388491a096b515365894f Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Fri, 5 May 2023 21:39:32 +0100 Subject: Use the MSB of the index to mark a transparent color Because we use 1 byte to store 4bpp, we don't need a mask and we can encode a "transparent" color in the bits we don't use. --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index a6d17e3..c7a7340 100644 --- a/README.md +++ b/README.md @@ -236,8 +236,10 @@ Read the file and add the content to the output at current position. .incpng "filename" Read the PNG image and add the content to the output at current position. The -image colours will be matched with the TR8 palette and any non-matchin color -will be condiered transparent and the image will be included with a mask. +image colours will be matched with the TR8 palette and any non-matching color +will be condiered transparent and the index `128` will be used. + +The blitter won't draw any pixel with index larger than 15. #### Load and Store -- cgit v1.2.3