Mercurial > vba-clojure
comparison 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 |
comparison
equal
deleted
inserted
replaced
489:641e1c511224 | 490:151c96d60921 |
---|---|
15 ;; simple. | 15 ;; simple. |
16 | 16 |
17 ;; use background tiles? they provide greater color depth than | 17 ;; use background tiles? they provide greater color depth than |
18 ;; sprites, and can still be scrolled, so why not? | 18 ;; sprites, and can still be scrolled, so why not? |
19 | 19 |
20 ;; could also use sprites to get 3 more colors per tile for a total of | |
21 ;; 7 colors per tile, although not for all tiles... | |
20 | 22 |
23 | |
24 | |
25 ;; want a function to | |
26 | |
27 ;; 1. read an image | |
28 ;; 2. split into a grid of 8x8 pixels | |
29 ;; 3. convert all RGB colors to gb-RGB colors | |
30 ;; 4. determine efficient color palletes for the image | |
31 ;; 5. output efficient assembly code to draw the image to the gb | |
32 ;; screen. | |
33 | |
34 | |
35 | |
36 | |
37 | |
38 | |
39 | |
40 | |
41 | |
42 | |
43 | |
44 | |
45 | |
46 | |
47 |