I'm using this information to build an interface to pick a color, but I feel that this question is purely math-related. Please correct me if this is the wrong StackExchange site for this.
I am making a function that accepts two numbers, n and m. n is a number between 0 and 200 and m is a number between 0 and 100. I want this function to return a set of three numbers (x, y, z), each number between 0 and 255.
There are n*m (20,000) possible unique inputs to this function, but the output could be one of 255^3 (16,581,375) combinations of the three numbers. Because I am using these numbers to generate color, I want to ensure that there is as diverse a set of results as possible based on the input.
Basically, I want f(n, m) to represent a diverse range of the 255^3 three number outputs.
Does anyone have any ideas as to how I could construct a function that outputs three numbers based on the input of two numbers in this way?
(n + m x 200) x 838.8608will give you20000numbers well spread out in the RGB space. Incrementingnwill increase the green by two units and the blue by 71; incrementingmwill increase the red by two or three units and green/blue by larger increments. In practice, you will see no correlation between (n, m) and the color.