40.txt
Click here to get the file
Size
1 kB
-
File type
text/plain
File contents
We can use a point to compute an index into a color table. One way to do this is to keep the fractional part of the x-coordinate, which ranges between zero and one, and multiply it by the number of elements in the color table.