CMM2 LIBRARY
4 State Linear Automata 1 by yock1960 (GRAPHICS/SCIENCE, updated 19-04-2021 10:15:51) UPDATE
Automata

A program to explore cellular automata, in this case, 4 state linear automata. A cousin to the well known 'Game of Life', but with an initial state or generation as 1 line, that propagates linearly, down the screen. This program is the 'grandchild' of a program written for the Commodore 64 and published in the magazine 'The Transactor', back in the mid 1980's.

Amazin 1.0.0 by William M Leue (DEMO/GRAPHICS/SCIENCE, updated 17-04-2024 12:07:30) UPDATE
Create and solve maze

Creates a random maze, runs it, and then shows the solved path with excursions into blind alleys removed. Uses a depth-first recursive algorithm for both maze creation and solving.

Analog Clock 1.0.0 by William M Leue (GRAPHICS, updated 30-04-2024 00:45:29) UPDATE
Large clock

A large analog clock face. Parameters at the top of the source allow you to choose 12 or 24-hour display and whether to play hourly chimes or not.

Binary Coded Decimal Clock 1.0.0 by William M Leue (GRAPHICS, updated 01-11-2022 22:12:25) UPDATE
A little different clock

A clock whos display consists of 6 columns of colored squares that represent the digits of the hour (2 leftmost columns), minutes (2 center columns), and second. (2 rightmost columns) From bottom to top, the row values are powers of 2: 1, 2, 4, and 8. Each square shows a bright color when active. For instance, at 07:39:06, the illuminated squares are (left to right): column 1: nothing (0); column 2: yellow, green, blue (1+2+4=7); column 3: yellow, green (1+2=3); column 4: yellow, red (1+8=9); column 5: nothing (0); column 6: green, blue (2+4=6).

Color Wheels 1.0.0 by William M Leue (DEMO/GRAPHICS, updated 12-05-2021 16:49:03) UPDATE
Color demo

Color wheels showing all possible colors in 8, 12, or 16-bit color modes.

Comet demo 1 by Henryk Krasuski (DEMO/GRAPHICS/EDUCATION, updated 18-12-2021 20:25:11) UPDATE

set option overclock on before running
This demo is just me playing around with blitting and geometry
Inspiration from 1980's

Etch a Sketch 1.0 by bar1010 (GRAPHICS, updated 11-07-2021 10:51:36) UPDATE
Simple drawing

Etch a Sketch allows the user to draw lines in eight directions with 256 colors in resolution 1280 x 1024. There is support for drawing simple shapes such as circles, ellipses, arcs, triangles and rectangles. The pen can be toggled up/down. Also included is Save, Load, and clear screen functionality.

Function Grapher Demos by bar1010 (DEMO/GRAPHICS/EDUCATION, updated 23-04-2021 18:57:13) UPDATE
2D functions demo

Two function grapher demos are included. Function Grapher 2D Cartesian Coordinates Function Grapher Polar Coordinates Both demos show plotting of points on grids in a slideshow type manner. Each function is displayed at the top left of the screen.

Galton 1.0.0 by William M Leue (DEMO/GRAPHICS/SCIENCE/EDUCATION, updated 19-07-2021 09:56:33) UPDATE

Simulates a Galton Board, showing how a Binomial Distribution (a discrete approximation of a normal curve) can be built up from a sequence of random events.

Grandfather Clock 1.3.0 by William M Leue (GRAPHICS, updated 10-05-2021 16:42:36) UPDATE
A little different clock

A grandfather clock that displays the current 12-hour time on the main face, the phase of the moon on the top bow, and the sunrise and sunset times, the current date, and the UTC 24-hour time on inset digital windows. If the user puts his correct latitude, longitude, UTC offset hour, and local elevation above sea level into the constants at the top of the source code, all displayed values will be accurate for his locality.

Graphics Programming on the CMM2 3f by Doug Pankhurst (panky) (GRAPHICS/DOCS, updated 13-02-2023 01:51:19) UPDATE
A detailed tutorial on the graphics capabilities of the Color Maximite 2.

This is a compilation of the threads posted by Peter Mather as a background and deeper explanation of the graphics
capabilities of the CMM2. I have taken the liberty (with Peters OK), to post them on the forum with some additional
comments and explanations of recent developments in the hope that they will assist others in realising the full potential
of the CMM2.

GRF library v0.14 by JirSoft (TOOL/GRAPHICS, updated 22-08-2021 18:52:21) UPDATE
Simple graphic library (info and loader)

It enables simpler use of some graphic formats, more info on GitHub...

Info and loaders for following formats:
• general : JPG, GIF, PNG, BMP
• Atari ST : PI1, PI2, PI3, PC1, PC2, PC3
• C64 : DD,HED, KOA, HBM
• ZX Spectrum: SCR, BSC
Also can save BMP in 8- and 16-bit colors.

Hextiles 1.0.0 by William M Leue (DEMO/GRAPHICS, updated 12-05-2021 16:48:20) UPDATE
Hexagon demo

Another Demo program: fills the screen with a grid of hexagons that change color and size over a cycle of several minutes. I wrote this years ago in C for the Mac "After Dark" screen saver environment.

Hitomezashi 1.0.0 by William M Leue (DEMO/GRAPHICS, updated 01-02-2023 15:47:31) UPDATE

Hitomezashi stitching is a Japanese embroidery technique creating a repeating pattern using only horizontal and vertical stitches. This program loosens the patterns using random numbers to create a tapestry with swirling colors. Users can specify from two to five colors in a pattern.

Kaleidoscope 1.1.1 by William M Leue (DEMO/GRAPHICS, updated 10-05-2021 17:05:49) UPDATE
Graphic effects

A simulated kaleidoscope that creates an ever-changing display of colored figures with 8-fold symmetry in a round field.

KitKatClock 1.1.0 by William M Leue (GRAPHICS, updated 10-05-2021 16:43:02) UPDATE
A little different clock

An emulation of the classic "Kit Kat Clock" with moving eyes and swinging tail.

Light Bright 1.0 by bar1010 (GAME/GRAPHICS, updated 27-10-2022 22:16:54) UPDATE
Simple drawing programs

Draw circles or squares on a 1280 x 1024 resolution screen. Four programs are included. Two utilize the keyboard. The other two utilize a Wii Controller. Up to 256 colors can be used. The size of the circles or squares can be changed. The screen can be cleared. A circle or square can be removed. The cursor can be shown or hidden.

Maze programs by bar1010 (GAME/GRAPHICS, updated 25-04-2021 23:30:42) UPDATE
Different mazes

Here are several of my 2 dimensional and 3 dimensional maze programs. Some involve finding a key before one can descend the ladder to the next lower level which increases in size a little each time. There are treasures to collect along the way. One version features colored walls, others have vector style graphics. There is a version which features multiple levels with many up and down ladders. Another version includes multi-screen 2 dimensional mazes. Some of these versions include a compass and ability to view a map/top view. Finally there is a 2D version which includes monsters.

Mazist v0.99 by Geoff Camp (Goksteroo) (GAME/GRAPHICS, updated 29-05-2022 04:03:15) UPDATE
Maze generator and solver

2D maze generation/solving program. Mazes can be 10x10 to 99x69. Included Save/load mazes for solving over several sessions, zoom function for small screens or poor eyesight or kids, mouse solve routines when you give up on a maze, mark trails or points in the maze to aid in solving.

New Colors Test 1.0.0 by William M Leue (TOOL/GRAPHICS, updated 15-07-2021 12:33:31) UPDATE
Named colors preview

A test program for viewing and analyzing all 16 "named" colors in every possible color bit depth using 5.07 or later firmware. You can look at the colors with any of the 3 bit depths (8,12,16) and if you have Gen 2 hardware, in 32-bit depth. The colors are shown with their names, hex values and r,g,b component values. This program requires firmware 5.07 or later!

Pentominoes 1.1.0 by William M Leue (GAME/GRAPHICS, updated 08-02-2022 17:41:00) UPDATE

A puzzle where you try to pack the 12 unique pentominoes into a rectangle that is 6x10, 5x12, 4x15, or 3x20 squares in side. It is hard! The program includes sample solutions for each rectangle, but there are thousands more to discover.

Version 1.1.0 features puzzle save (F1) and puzzle restore (F2) commands so that you can save your work at any stage and restore it later to continue work or show a completed puzzle. The other new feature is a 5th puzzle layout that has an 8x8 grid with a 2x2 hole in the middle.

Picture Puzzles 1.0 by bar1010 (GAME/GRAPHICS, updated 21-11-2022 20:46:59) UPDATE
Similar to jigsaw puzzles

Four programs are included. Two programs are controlled via the keyboard and the other two use the Wii Controller. Two programs display 256 1024x768 puzzles while the other two display 86 768x768 puzzles. There are five sizes of puzzle pieces ranging from 12 pieces to thousands of pieces. One selects which puzzle to load or select a random puzzle. The pieces always have a square shape. Pieces can be rotated clockwise or counterclockwise or 180 degrees. Two pieces can be swapped. One can view the completed puzzle and then go back to the work in progress puzzle. There is an option to hide/view the cursor. The program is split into three parts on github. Use 7-Zip Extract Here on the first of the three parts.

poly-intro 1 by Henryk Krasuski (DEMO/GRAPHICS/EDUCATION, updated 20-03-2022 20:40:31) UPDATE
Mini demo

Drawing a rotating star with the polygon command and double buffering

PythgagTree 1.0.0 by William M Leue (DEMO/GRAPHICS, updated 08-07-2021 19:35:38) UPDATE
Fractal paint

Draws a Pythagoras Tree fractal.

Radar Air Traffic Control 1.1.0 by William M Leue (GRAPHICS/SCIENCE, updated 05-11-2023 12:52:58) UPDATE
Radar screen simulator

A simulation of an analog radar screen with sweep and phosphor exponential brightness decay. A user-selectable number of simulated radar targets are shown, and a table shows transponder ID, range, and bearing for each target. Table values can be sorted by each target value and sorts can be changed to be up or down.

SimplEd v0.42 by JirSoft (TOOL/GRAPHICS, updated 22-08-2021 18:45:59) UPDATE
Font editor for fonts used by PRINT and TEXT commands.

Font editor for CMM2 fonts (created fonts can be used in MMBasic's PRINT and TEXT commands). Operations like edit, rotate, shift, inverse, fill... Import from BAS, INC and FNT files, font can be also scanned from any image, HT and PS/2 mouse support.
With help of SimplEd.CFG can be defined key shortcuts and on-screen-help, sample file is on GitHub. There is also short program Show_Keys.BAS, it can be used for finding proper key combination needed...
Macros can be saved/loaded to/from text file, so you can build a macro-library.

SlashMaze 1.0.0 by William M Leue (DEMO/GRAPHICS, updated 12-05-2021 16:48:07) UPDATE
Commodore like RND maze

An emulation of the famous Commodore Pet "10PRINT" one-line BASIC maze generator. On the Pet, the characters were made on an 8x8 pixel grid, and the forward and backward slash characters filled that grid from corner to corner, which made the one-line program possible. This program for CMM2 produces the same result, but alas, with more lines of BASIC.

SpinClock 1.1.2 by William M Leue (GRAPHICS, updated 10-05-2021 16:42:45) UPDATE
A little different clock

A digital clock that can be set to show 12-hour or 24-hour time by changing a constant at the top of the source code. Each large digit is made up of a 4 x 6 rectangle of small "clock dials" that spin to different positions when the digits of the current time change.

SplitScreen library 0.05 by JirSoft (GAME/TOOL/GRAPHICS, updated 15-12-2021 22:44:51) UPDATE
Library for screen splitting

It enables to split screen into areas, print text into it or load image. It can be used for example for text games with pictures. Example BAS file is included, more info on GitHub...
• SUB init.SPLIT(cs$, dx%, dy%, w%, h%)
• SUB setStyle.SPLIT(cs$, t%, f%, fc%, bc%)
• SUB cls.SPLIT(cs$)
• SUB print.SPLIT(cs$, txt$)
• FUNCTION loadImage.SPLIT(cs$, fn$, iw%, ih%)
• FUNCTION input.SPLIT(cs$, allowedChars$, maxLen%) AS STRING

Truchet Tiles 1.0.0 by William M Leue (DEMO/GRAPHICS, updated 12-05-2021 16:48:31) UPDATE
Tile demo

A random, infinitely scrolling maze made of Truchet Tiles. The colors gradually change over a time period of a few minutes.

TUI library v0.50 by JirSoft (GENERAL/TOOL/GRAPHICS, updated 04-12-2021 22:58:06) UPDATE
Simple text UI library

Simple LIB_TEST.BAS file is included, more info on GitHub...
• SUB TUIinfo(title AS STRING, txt() AS STRING, logo AS INTEGER)
• FUNCTION TUIwaitingON(title AS STRING) AS STRING
• SUB TUIwaitingProgress(coord AS STRING, perc AS INTEGER)
• SUB TUIwaitingOFF(coord AS STRING)
• FUNCTION TUIchoice(title AS STRING, txt AS STRING) AS INTEGER
• SUB TUIwarning(title AS STRING, txt AS STRING)
• FUNCTION TUIquestion(title AS STRING, txt AS STRING) AS INTEGER
• FUNCTION TUIinput(title AS STRING, txt AS STRING, def AS STRING, en AS STRING) AS STRING
• FUNCTION TUIselect(title AS STRING, txt AS STRING, s AS INTEGER) AS INTEGER
• FUNCTION TUIgetItem(title AS STRING, subtitle AS STRING, txt() AS STRING) AS STRING
• FUNCTION TUIgetParent(s AS STRING) AS STRING
• FUNCTION TUIgetSelect(path AS STRING, ext AS STRING) AS STRING
• FUNCTION TUIfileSelect(path AS STRING, ext AS STRING, root AS STRING) AS STRING
• FUNCTION TUIemptyON(title AS STRING, ww AS INTEGER, hh AS INTEGER, but AS STRING) AS STRING
• FUNCTION TUImenu(menu() AS STRING) AS INTEGER
• SUB TUIemptyOFF(coord AS STRING)
• SUB TUIwaitForKey
• SUB TUIwaitForNoKey

xDragon Game Engine 0.1 by Epsilon (DEMO/GAME/TOOL/GRAPHICS, updated 25-05-2021 17:24:48) UPDATE
A CMM2 Game Engine.

xDragon is a 2D game engine in tune with the CMM2 feature set. The engine is geared towards arcade style action games such as shooters, platformers, top-down racers etc.