9fans archive / 2008 / 01 / 491 /    prev next

From: Pietro Gagliardi <pietro10@mac.com>
Subject: Re: [9fans] How to read/write pixels from Memimage
Date: Sun, 27 Jan 2008 20:08:46 -0500

Another question: in RGB24, how are colors composited: 0x00RRGGBB or  
0xRRGGBB00? I can't seem to get a picture that is solid red; just a  
wacky line art picture.

On Jan 27, 2008, at 7:18 PM, Pietro Gagliardi wrote:

> It's up.
>
> On Jan 27, 2008, at 6:44 PM, Pietro Gagliardi wrote:
>
>> Okay, I just found out that division by zero meant a black pixel  
>> would be placed, so I am going to add that and upload a new version.
>>
>> On Jan 27, 2008, at 1:05 PM, Skip Tavakkolian wrote:
>>
>>>> The code led me to confusion, so I just decided to use wordaddr. It
>>>> works properly now,  and my Pico is now up at /n/sources/contrib/
>>>> pietro/pico9.tgz (note the 9). Details are in README.Plan9, test
>>>> files are in /lib/face/.
>>>
>>> some book examples are failing:
>>>
>>> cpu% 8.out
>>> 1:	new[x,y] = x % y
>>> 8.out 181613: suicide: sys: trap: divide error pc=0x000023fd
>>>
>>
>