1 registered members (AndrewAMD),
1,014
guests, and 1
spider. |
Key:
Admin,
Global Mod,
Mod
|
|
|
pixel_to_vec returns wrong color
#188770
03/16/08 15:26
03/16/08 15:26
|
Joined: Jan 2007
Posts: 1,619 Germany
Scorpion
OP
Serious User
|
OP
Serious User
Joined: Jan 2007
Posts: 1,619
Germany
|
hello, I played around with pixel_to_vec a bit and I found out, that I alwas returns 0 at the blue chanel, red and green behave normally. This lines(in a loop) for example give me a yellow picture: Code:
vec_set(pixelColor,vector(255,255,255)); pixel = pixel_for_vec(pixelColor,100,format); pixel_to_bmap(outputBMP,x,y,pixel);
Cheers Scorpion
|
|
|
Re: pixel_to_vec returns wrong color
[Re: jcl]
#188772
03/16/08 19:40
03/16/08 19:40
|
Joined: Jan 2007
Posts: 1,619 Germany
Scorpion
OP
Serious User
|
OP
Serious User
Joined: Jan 2007
Posts: 1,619
Germany
|
yellow is red + green..sorry to disappoint you there lol^^ edit: i checked the format it's 8888....the target and the destination bmap
Last edited by Scorpion; 03/16/08 20:03.
|
|
|
|