One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
// HSV to RGB code from http://www.splinter.com.au/converting-hsv-to-rgb-colour-using-c/ | |
// Other code by me | |
#r "System.Drawing"; | |
using System.Drawing; | |
void HsvToRgb(double h, double S, double V, out int r, out int g, out int b) | |
{ | |
// T. Nathan Mundhenk mundhenk@usc.edu | |
double H = h; |
for x = 0, 15 do | |
for y = 0, 15 do | |
c = string.format("%q", string.char(16 * x + y)):gsub("\"", ""):gsub("\n", "n") | |
c = string.rep(" ", 4 - #c) .. c | |
io.stdout:write(c) | |
end | |
io.stdout:write("\n") | |
end | |
--[[ OUTPUT: |