mirror of
https://frontier.innolan.net/github/AmigaExamples.git
synced 2026-09-12 20:33:11 +00:00
26 lines
1.0 KiB
Markdown
26 lines
1.0 KiB
Markdown
display a simple image
|
|
======================
|
|
|
|
Building on [trackdisk.device](../000.trackdisk), we now display a simple color image.
|
|
|
|
I display a 5 bitplane (32 color) low res image.
|
|
|
|
The image data is prepared using a new tool I wrote called [imagecon](../tools/imagecon/imagecon.c). This takes (almost) any 320x256 PNG and using [libimagequant](https://pngquant.org/lib/) it reduces the palette to 32 colors, then dumps out the copper list and interleaved bitplane data ready to be included into [image.s](image.s).
|
|
|
|
The original version of this example used [vilcans amiga-startup](https://github.com/vilcans/amiga-startup) as a starting point, however almost all of that code has been replaced as my understanding expanded.
|
|
|
|
screenshot
|
|
----------
|
|
|
|

|
|
|
|
original image
|
|
--------------
|
|
|
|

|
|
|
|
try it
|
|
------
|
|
* [Download disk image](bin/image.adf?raw=true)
|
|
* <a href="http://alpine9000.github.io/ScriptedAmigaEmulator/#amiga_examples/image.adf" target="_blank">Run in SAE</a>
|