Question on greyscale

Moderator: Duck

Post Reply
Deathsting
Regular Member
Posts: 110
Joined: Wed 19 Jan, 2005 4:57 pm
Location: Inside you

Question on greyscale

Post 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?
Duck
Sir Posts-A-Lot
Posts: 231
Joined: Sat 18 Dec, 2004 3:38 am

Post 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
Deathsting
Regular Member
Posts: 110
Joined: Wed 19 Jan, 2005 4:57 pm
Location: Inside you

Post by Deathsting »

Is there a way i can mask the lighter grey shade instead of the darker one
Guest

Post by Guest »

How can i write in light and dark greysclae ???
User avatar
tr1p1ea
Maxcoderz Staff
Posts: 4141
Joined: Thu 16 Dec, 2004 10:06 pm
Location: I cant seem to get out of this cryogenic chamber!
Contact:

Post 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.
"My world is Black & White. But if I blink fast enough, I see it in Grayscale."
Image
Image
Post Reply