Board Thread:Program Announcements/@comment-25017421-20140603081447/@comment-5334617-20140614235745

Furrysalamander wrote: A) the 256 color limit

If you scale your R, G, B values to integers in the range 0, 1, 2, 3, 4, 5, then the expression  will give you a default   colour number corresponding to those intensities (from the page List of default colours). If that's not enough flat colours, you might want to consider dithering: ordered dithering is not too hard to implement.

B) the fact that I have no idea how to properly calculate normals

Calculate them... from what? Given three points, calculate the normal to the plane they describe? Given a parameterized form of two lines, calculate a line normal to both of them? Under what conditions are you calculating the normal, and what are the givens?