GithubHelp home page GithubHelp logo

metal's Introduction

metal

Bare Metal BASIC

Video colors

CGA EGA  VGA      RBG         Web     Example
0x0 0x0  0,0,0    0,0,0       #000000 black
0x1 0x1  0,0,42   0,0,170     #0000aa blue
0x2 0x2  00,42,00 0,170,0     #00aa00 green
0x3 0x3  00,42,42 0,170,170   #00aaaa cyan
0x4 0x4  42,00,00 170,0,0     #aa0000 red
0x5 0x5  42,00,42 170,0,170   #aa00aa magenta
0x6 0x14 42,21,00 170,85,0    #aa5500 brown
0x7 0x7  42,42,42 170,170,170 #aaaaaa gray
0x8 0x38 21,21,21 85,85,85    #555555 dark gray
0x9 0x39 21,21,63 85,85,255   #5555ff bright blue
0xA 0x3A 21,63,21 85,255,85   #55ff55 bright green
0xB 0x3B 21,63,63 85,255,255  #55ffff bright cyan
0xC 0x3C 63,21,21 255,85,85   #ff5555 bright red
0xD 0X3D 63,21,63 255,85,255  #ff55ff bright magenta
0xE 0x3E 63,63,21 255,255,85  #ffff55 yellow
0xF 0x3F 63,63,63 255,255,255 #ffffff white

Video memory

+---------------------------------+---------------------------------+
|  8 bits                         |  8 bits                         | 
|  7   6   5   4   3   2   1    0 |  7   6   5   4   3   2   1    0 | 
|blink|color back|color front     |  char code                      |
+---------------------------------+---------------------------------+

Game engine package http://github.com/hajimehoshi/ebiten/

Installation

macOS

go get github.com/hajimehoshi/ebiten/...

Linux

sudo apt-get install libglu1-mesa-dev libgles2-mesa-dev libxrandr-dev libxcursor-dev libxinerama-dev libxi-dev libopenal-dev

metal's People

Contributors

crgimenes avatar

Watchers

 avatar

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.