Computer Graphics

Moderators: Sephiroth
Number of threads: 1263
Number of posts: 2665

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Edit Report
Fast graphics in qbasic. Posted by user7 on 13 Apr 2000 at 12:50 PM
How do I write to graphics memory in qbasic? (v1.1)


Edit Report
Re: Fast graphics in qbasic. Posted by Topbat on 13 Apr 2000 at 8:43 PM
: How do I write to graphics memory in qbasic? (v1.1)<br>
: <br>
<br>
Use poke and peek...example<br>
<br>
SCREEN 13<br>
DEF SEG = &HA000 ;Screen segment<br>
x=100<br>
y=100<br>
POKE y * 320 + x, col ;draw it<br>
<br>
This is also a lot faster than PSET...<br>
<br>
PS. The formula for offset address in 13H mode is Y*320+x<br>
<br>






 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.