Coder Social home page Coder Social logo

mobluse / semigraphics Goto Github PK

View Code? Open in Web Editor NEW
6.0 3.0 1.0 65 KB

Functions for semigraphics similar to ABC80 (setdot, clrdot, dot), TRS-80, TeleText, Text-TV, & Viewdata using 3x2 blocks, and ZX81 (plot, unplot) using 2x2 blocks.

Home Page: https://youtu.be/wVY0dhnFev8

License: GNU Affero General Public License v3.0

Forth 100.00%
forth unicode retrocomputing gforth teletext abc80 zx81 block sextant quadrant

semigraphics's Introduction

ZX81

Semigraphics

Functions for semigraphics similar to ABC80 (setdot, clrdot, dot), ABC800 (txpoint), TRS-80 (set, reset, point), TeleText, Text-TV, TeleData, and Videotex using 3x2 blocks, and ZX81 (plot, unplot) using 2x2 blocks.

A game that uses this semigraphics library is Convoy Bomb.

This 3x2 (AKA 2x3) graphics depends on a font in the terminal emulator: teletext2 or teletext4 from https://github.com/peterkvt80/Muttlee/tree/master/public/assets or Bedstead from http://bjh21.me.uk/bedstead/. Unfortunately the 64 characters needed for TeleText graphics are on non standard codepoints in Bedstead, and in Unicode these are used for some Chinese characters. Now there are Symbols for Legacy Computing in the new Unicode standard and these also exist in the new versions of DejaVu Sans Mono and Monospace Regular and these have the 64 characters for TeleText graphics.

Video: https://youtu.be/wVY0dhnFev8

Support for ZX80 and ZX81 (plot, unplot) using 2x2 blocks, but these have standard Unicode codepoints and exists in e.g. DejaVu Sans Mono, MS Gothic, NNimSun (almost), and SimSun-ExtB (almost). Unfortunately the 16 characters are not in teletext2.ttf or teletext4.ttf. I have tested various ZX81 and ZX Spectrum fonts, but none I found worked in the console since they were not monospaced. ZX81 also had characters with gray, but they can be emulated with the others since one can set forground and background color for each position, but they are also supported in Symbols for Legacy Computing.

ABC800

semigraphics's People

Contributors

mobluse avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

goblinrieur

semigraphics's Issues

not really an issue but a question

hello.

I saw your video, and as a gnu-forth curious guy, I read your code, quickly for now.
I ran the game on Debian trixie with both gforth 0.7.3 & 0.7.9 successfully too

why not use either an
: ESC[ 27 91 emit emit ; word to be more 0.6.x to 0.7.9 (0.7.9 will deprecate ESC[ internal)
or
.\" \e[1m" standard gforth escaped strings|escape sequences syntax

Is this due to a windows and ANS colored compatible terminals ? or another reason ?

regards

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.