Mercurial > vba-clojure
annotate clojure/com/aurellem/run/image.clj @ 490:151c96d60921
edit to image.clj
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Mon, 11 Jun 2012 00:53:20 -0500 |
parents | 641e1c511224 |
children | 1d81ddd4fa41 |
rev | line source |
---|---|
rlm@488 | 1 (ns com.aurellem.run.image |
rlm@486 | 2 (:use (com.aurellem.gb saves gb-driver util constants |
rlm@486 | 3 items vbm characters money |
rlm@486 | 4 rlm-assembly)) |
rlm@486 | 5 (:use (com.aurellem.run util title save-corruption |
rlm@486 | 6 bootstrap-0 bootstrap-1)) |
rlm@486 | 7 (:require clojure.string) |
rlm@486 | 8 (:import [com.aurellem.gb.gb_driver SaveState]) |
rlm@486 | 9 (:import java.io.File)) |
rlm@486 | 10 |
rlm@486 | 11 ;; want to display an image onto the screen. |
rlm@486 | 12 ;; probably will be the six ponies, possibly with scrolling. |
rlm@486 | 13 |
rlm@486 | 14 ;; probably don't need hi-color mode since the images shuld be |
rlm@486 | 15 ;; simple. |
rlm@486 | 16 |
rlm@486 | 17 ;; use background tiles? they provide greater color depth than |
rlm@486 | 18 ;; sprites, and can still be scrolled, so why not? |
rlm@486 | 19 |
rlm@490 | 20 ;; could also use sprites to get 3 more colors per tile for a total of |
rlm@490 | 21 ;; 7 colors per tile, although not for all tiles... |
rlm@486 | 22 |
rlm@490 | 23 |
rlm@490 | 24 |
rlm@490 | 25 ;; want a function to |
rlm@490 | 26 |
rlm@490 | 27 ;; 1. read an image |
rlm@490 | 28 ;; 2. split into a grid of 8x8 pixels |
rlm@490 | 29 ;; 3. convert all RGB colors to gb-RGB colors |
rlm@490 | 30 ;; 4. determine efficient color palletes for the image |
rlm@490 | 31 ;; 5. output efficient assembly code to draw the image to the gb |
rlm@490 | 32 ;; screen. |
rlm@490 | 33 |
rlm@490 | 34 |
rlm@490 | 35 |
rlm@490 | 36 |
rlm@490 | 37 |
rlm@490 | 38 |
rlm@490 | 39 |
rlm@490 | 40 |
rlm@490 | 41 |
rlm@490 | 42 |
rlm@490 | 43 |
rlm@490 | 44 |
rlm@490 | 45 |
rlm@490 | 46 |
rlm@490 | 47 |