CircuitGizmos

Electronic Products for Creative Minds

  • Home
  • Gizmo Store/Products
  • Documentation/Datasheets
  • Projects/Libraries
  • GizmoBlog
  • Services/Contact
    • Design
    • Contact Gizmo!
  • Your Gizmo Cart
    • Your Account
You are here: Home / GizmoBlog / MMBasic Language / Screen and Graphics (VGA/composite) / MODE

MODE

MODE mode [, palette]

Sets the number of colors that can be displayed on the screen.

‘mode’ can be:

1 Monochrome mode. ‘palette’ will select the color to use and can be 0 to 7 representing the colors black to white. This mode provides complete compatibility with programs written for the monochrome Maximite.

2 Four color mode. ‘palette’ can be a number from 1 to 6 and will select the range of colors available.

In mode 2 the colors available in each palette are:
palette = 1 Black, Red, Green, Yellow
palette = 2 Black, Red, Blue, Purple
palette = 3 Black, Red, Cyan, White
palette = 4 Black, Green, Blue, Cyan
palette = 5 Black, Green, Purple, White
palette = 6 Black, Blue, Yellow, White

3 Eight color mode. In this mode all eight colors (including black and white) can be used. ‘palette’ can be supplied but will be ignored.

4 240×216 pixel resolution with all eight colors (including black and white) available. ‘palette’ can be supplied but will be ignored.

Color graphics. Examples of the MODE command. (Image actually generated completely in mode 3.)

VGA screen resolution is 480 horizontal by 432 vertical in modes 1-3, and 240×416 in mode 4. PAL composite is 304 by 216 and NTSC composite is 304 by 180.

The MODE command allows the programmer to trade the number of colors used and resolution against the amount of memory required by the video driver. Modes 1 and 4 use the least amount of memory while mode 3 uses the most.

See also:

BLIT

CIRCLE

CLR$

CLS

COLOR

LINE

LOCATE

MM.HPOS

MM.HRES

MM.VPOS

MM.VRES

PIXEL

POS

PRESET

PRINT

PRINT @

PSET

SCANLINE

SPRITE

 

 

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

A Ton of Documentation

Open all | Close all

Projects made by Gizmo, Friends, and Members

open all | close all

Recent GizmoBlog Musings

  • Altair 8800 using a ColorMax!
  • Re-energizing the ColorMax, Pt. 3

Visit us!

  • Facebook

Electronic Products for Creative Minds

CircuitGizmos is your source for electronic products that help you create your embedded projects. Here at CircuitGizmos.com you will find a friendly store filled with creative products and all of the documentation that you need to use these gizmos.

We create devices that we believe make electronics fun, but we also know that our products are used for professional designs. For decades we have designed products for commercial, military, and medical industries. Our gizmos here are great for engineers and hobbyists alike.

Copyright © 2008+ CircuitGizmos, L.L.C. All rights reserved

Image already added

Recently Viewed Products

Copyright © 2022 · Generate Pro Theme on Genesis Framework · WordPress · Log in