MaxCoderz

for your 1 bit pleasure!

All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Question on greyscale
PostPosted: Fri 25 Feb, 2005 7:03 am 
Offline
Regular Member

Joined: Wed 19 Jan, 2005 4:57 pm
Posts: 110
Location: Inside you
Whats the syntax for gsFlipHoriz? Is it
Code:
Ld ix,some
call gsFlipHoriz

Are the greyscale sprites ORed, Do they invert when placed over a black backround?


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Fri 25 Feb, 2005 10:36 am 
Offline
Sir Posts-A-Lot

Joined: Sat 18 Dec, 2004 3:38 am
Posts: 228
The routine horizontally flips the sprite in gsTempSprite. So to flip a sprite in HL, you could:
Code:
    ld hl,yourSprite
    ld de,gsTempSprite
   ld bc,16
   ldir
    call gsFlipHoriz


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Fri 04 Mar, 2005 2:25 pm 
Offline
Regular Member

Joined: Wed 19 Jan, 2005 4:57 pm
Posts: 110
Location: Inside you
Is there a way i can mask the lighter grey shade instead of the darker one


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu 24 Mar, 2005 10:29 am 
How can i write in light and dark greysclae ???


Top
  
Reply with quote  
 Post subject:
PostPosted: Wed 30 Mar, 2005 5:26 am 
Offline
Maxcoderz Staff
User avatar

Joined: Thu 16 Dec, 2004 10:06 pm
Posts: 4094
Location: I cant seem to get out of this cryogenic chamber!
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


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB ® Forum Software © phpBB Group | DVGFX2 by: Matt