Home

Awesome

Rgb2Hires

Rgb2Hires is a set of tools to help convert a modern RGB image (JPEG, PNG) to the HIRES format for Apple II computers, either as a binary export or an assembly listing.

The colors of the RGB image can be approximate: Rgb2Hires will match them with the nearest HIRES color.

Apple II colors

RGB values of the targeted colors:

Projects

This repository contains three "PC" projects:

And one Apple II project:

Note: For more information about the "Hires" format and its limitations, you can refer to my website.

Build from sources

Dependencies

The dependencies are managed by conan.io. Please refer to their documentation for installation instructions.

The build system is managed by CMake.

How to build

mkdir build && cd build
conan install ..
cmake .. -DCMAKE_BUILD_TYPE=RELEASE
cmake --build . --config release -j

Apple II project (Loader)

Dependencies

How to build

A makefile is provided. Just run

make

Test

Demo

The live preview can help to visualise color clashing and artifacts. You can edit your file using Photoshop or any other application. The Preview window will be updated each time the file is saved.

<a href="https://pub.xtof.info/github/demo-rgb2hires.mp4"> <img src="https://pub.xtof.info/github/demo-rgb2hires.png"/> </a>