It would seem that Tinyscheme does not support the radix.
Per the Scheme specs at http://www.delorie.com/gnu/docs/guile/r5rs_56.html there is a radix parameter, such that if I code
(number->string 255 16)
I would expect it to return the string "ff".
I tried the attached code (which puts a script "Test Base 16" into a "Debug" menu). I'm expecting the code to put "ff" into the image as a text layer, but it puts "255" in. My ultimate goal is to convert an RGB value 0-255 0-255 0-255 into a Web hex value. Any ideas?