changeset 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
files clojure/com/aurellem/run/image.clj
diffstat 1 files changed, 27 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
     1.1 --- a/clojure/com/aurellem/run/image.clj	Mon May 07 12:37:04 2012 -0500
     1.2 +++ b/clojure/com/aurellem/run/image.clj	Mon Jun 11 00:53:20 2012 -0500
     1.3 @@ -17,4 +17,31 @@
     1.4  ;; use background tiles?  they provide greater color depth than
     1.5  ;; sprites, and can still be scrolled, so why not? 
     1.6  
     1.7 +;; could also use sprites to get 3 more colors per tile for a total of
     1.8 +;; 7 colors per tile, although not for all tiles...
     1.9  
    1.10 +
    1.11 +
    1.12 +;; want a function to
    1.13 +
    1.14 +;; 1. read an image
    1.15 +;; 2. split into a grid of 8x8 pixels
    1.16 +;; 3. convert all RGB colors to gb-RGB colors
    1.17 +;; 4. determine efficient color palletes for the image
    1.18 +;; 5. output efficient assembly code to draw the image to the gb
    1.19 +;; screen.
    1.20 +
    1.21 +
    1.22 +
    1.23 +
    1.24 +
    1.25 +
    1.26 +
    1.27 +
    1.28 +
    1.29 +
    1.30 +
    1.31 +
    1.32 +
    1.33 +
    1.34 +