Take a look at<div><br></div><div><a href="https://github.com/jeapostrophe/rl">https://github.com/jeapostrophe/rl</a></div><div><br></div><div>particularly</div><div><br></div><div><a href="https://github.com/jeapostrophe/rl/blob/master/ui/ui-world.ss">https://github.com/jeapostrophe/rl/blob/master/ui/ui-world.ss</a></div>
<div><br></div><div>Jay<br><br><div class="gmail_quote">On Mon, Dec 12, 2011 at 8:53 AM, Will Robinson <span dir="ltr"><<a href="mailto:quantum.penguin@gmail.com">quantum.penguin@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello,<br><br>I'm trying to do a simple Roguelike game as an exercise in learning the language, particularly racket/gui. I'm using draw-text to place characters on the screen. Ideally, I'd just call this once and put up huge string full of newlines to represent a block of text. My problem is that I want to have control of the color of each character in this block of text. It seems to me that the color controls for draw-text are applied to the entire block at once. Should I just call draw-text for each character in the block, individually assigning color? That seems to be very slow computationally, not to mention more work on the poor coder.<br>
<br>Any advice is welcome. Thank you!<br><br>DocRob<br>
<br>_________________________________________________<br>
For list-related administrative tasks:<br>
<a href="http://lists.racket-lang.org/listinfo/users" target="_blank">http://lists.racket-lang.org/listinfo/users</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Jay McCarthy <<a href="mailto:jay@cs.byu.edu" target="_blank">jay@cs.byu.edu</a>><br>
Assistant Professor / Brigham Young University<br><a href="http://faculty.cs.byu.edu/~jay" target="_blank">http://faculty.cs.byu.edu/~jay</a><br><br>"The glory of God is Intelligence" - D&C 93<br>
</div>