## Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

• Help others & share knowledge
• Earn cash & points
Solved

# In MCGA, Tell color of pixel in coordinate

Posted on 1998-09-24
216 Views
I'm unfamiliar in how I could tell the color of a pixel for a specified coordinate.  I am familiar in how i could do this if i was in text mode:

If Chr(mem[\$b800:position]) = 'x' then

Where 'position' is the value for the coordinate, and x is the character that i'll do something with if it's there.  This works for text mode, but how would I do a similar approach in MCGA?  Would the \$b800 thingy be different?  I know the Chr thing wouldn't work, obviously.  And I assume instead of having the 'x' you would have a color between 256.  But I don't really know, that's why i'm asking  (:

Thanks

PS:  I hope i explained what I would like to know how to do good, if not please just leave me a comment asking for some more clarification...
0
Question by:hansell

LVL 5

Accepted Solution

scrapdog earned 70 total points
ID: 1215683
In MCGA, you would use \$a000

Try this:

Color := mem[\$a000:position];

(where position is 320*y coordinate+x coordinate,
and Color is between 0 and 255)

scrappy
0

Author Comment

ID: 1215684
Scrappy:

Thanks, I thought for sure I was doomed (:  This helped out a lot.

Thanks again
0

## Featured Post

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

### Suggested Solutions

In this article we will learn how to fix  “Cannot install SQL Server 2014 Service Pack 2: Unable to install windows installer msi file” error ?
The advancement in technology has been a great source of betterment and empowerment for the human race, Nevertheless, this is not to say that technology doesn’t have any problems. We are bombarded with constant distractions, whether as an overload o…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…