[Ql-Users] Mode 33 to 32
I want to convert a mode 33 screen (Qxx) to mode 32 (QPC2) and visa versa. I got this far with 33 to 32, but Im not sure this is the best translation: rem %grbw = mode 33 rem %gggbrggg = mode 32 c$ = BIN$(PEEK_W(a), 16) c$ = c$(3 TO 5) & c$(11 TO 15) & c$(6 TO 10) & c$(1 TO 2) & c$(16): rem = %gggbrggw What do I do with 'w' in either case for best results? Per ___ QL-Users Mailing List
Re: [Ql-Users] Mode 33 to 32
33->32 the W would be the least significant bit of G, and that bit would be a copy of the most significant bit of G such that a full black pixel will be full black and a full green pixel will be full green so white can be white and not have a magenta tinge. This would cause a likely imperceptible green boundary line from 0 to 1 (which would be 10001). IMHO. On Fri, Dec 15, 2017 at 11:51 AM, pjwitte via Ql-Users < ql-users@lists.q-v-d.com> wrote: > I want to convert a mode 33 screen (Qxx) to mode 32 (QPC2) and visa versa. > I got this far with 33 to 32, but Im not sure this is the best translation: > > rem %grbw = mode 33 > rem %gggbrggg = mode 32 > > c$ = BIN$(PEEK_W(a), 16) > c$ = c$(3 TO 5) & c$(11 TO 15) & c$(6 TO 10) & c$(1 TO 2) & c$(16): rem = > %gggbrggw > > What do I do with 'w' in either case for best results? > > Per > > ___ > QL-Users Mailing List > -- Dave Park d...@sinclairql.com ___ QL-Users Mailing List
Re: [Ql-Users] Mode 33 to 32
> What do I do with 'w' in either case for best results? I would just use the RGB0 bit of mode 33 as G0 Bit of mode 32, which is what you probably do already. There is no perfect translation, since mode 33 has 64 clean grey levels, while mode 32 has only 32. There will be a minimal green tint in mode 32 where RGB0 of mode 33 was set, but almost not noticeable. ___ QL-Users Mailing List
Re: [Ql-Users] Mode 33 to 32
Thanks guys :) On 16/12/2017 00:30, Peter Graf via Ql-Users wrote: What do I do with 'w' in either case for best results? I would just use the RGB0 bit of mode 33 as G0 Bit of mode 32, which is what you probably do already. There is no perfect translation, since mode 33 has 64 clean grey levels, while mode 32 has only 32. There will be a minimal green tint in mode 32 where RGB0 of mode 33 was set, but almost not noticeable. ___ QL-Users Mailing List ___ QL-Users Mailing List
Re: [Ql-Users] Mode 33 to 32
I'd do it this way %ggWbrggg Regards Wolfgang On 15/12/2017 18:51, pjwitte via Ql-Users wrote: I want to convert a mode 33 screen (Qxx) to mode 32 (QPC2) and visa versa. I got this far with 33 to 32, but Im not sure this is the best translation: rem %grbw = mode 33 rem %gggbrggg = mode 32 c$ = BIN$(PEEK_W(a), 16) c$ = c$(3 TO 5) & c$(11 TO 15) & c$(6 TO 10) & c$(1 TO 2) & c$(16): rem = %gggbrggw What do I do with 'w' in either case for best results? Per ___ QL-Users Mailing List ___ QL-Users Mailing List