?
Solved

In MCGA, Tell color of pixel in coordinate

Posted on 1998-09-24
2
Medium Priority
?
238 Views
Last Modified: 2010-04-16
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
Comment
Question by:hansell
[X]
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
  • Learn & ask questions
2 Comments
 
LVL 5

Accepted Solution

by:
scrapdog earned 280 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

by:hansell
ID: 1215684
Scrappy:

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

Thanks again
0

Featured Post

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

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

If you're a modern-day technology professional, you may be wondering if certifications are really necessary. They are. Here's why.
Ready to get certified? Check out some courses that help you prepare for third-party exams.
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question