Solved

In MCGA, Tell color of pixel in coordinate

Posted on 1998-09-24
2
204 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
2 Comments
 
LVL 5

Accepted Solution

by:
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

by:hansell
ID: 1215684
Scrappy:

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

Thanks again
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

746 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now