Page 1 of 1

Question on greyscale

Posted: Fri 25 Feb, 2005 7:03 am
by Deathsting
Whats the syntax for gsFlipHoriz? Is it

Code: Select all

Ld ix,some
call gsFlipHoriz
Are the greyscale sprites ORed, Do they invert when placed over a black backround?

Posted: Fri 25 Feb, 2005 10:36 am
by Duck
The routine horizontally flips the sprite in gsTempSprite. So to flip a sprite in HL, you could:

Code: Select all

 	ld hl,yourSprite
 	ld de,gsTempSprite
	ld bc,16
	ldir
 	call gsFlipHoriz

Posted: Fri 04 Mar, 2005 2:25 pm
by Deathsting
Is there a way i can mask the lighter grey shade instead of the darker one

Posted: Thu 24 Mar, 2005 10:29 am
by Guest
How can i write in light and dark greysclae ???

Posted: Wed 30 Mar, 2005 5:26 am
by tr1p1ea
Writting a certain chade of grayscale is as simple as setting a bit in the appropriate buffer(s).

Deathsting, you could achieve that by modifying the sprite routine a little.