convert 3 c# functions to JS
$30-65 USD
Paid on delivery
I have a block of code done in c# that generates a spectrum of hex RGB color values between two endpoints.
To make a nice spectrum it doesn't simple slide R1->R2, G1->G2 B1->B2 but rather converts RGB1 to HSV (hue saturation brightness),
then slides H1 -> H2 etc, then converts back. This code works well client side but I need it
done client side now.
Please send back a javascript version that goes like this
function color_array(RGB1, RGB2, steps){
// RGB1 = 00CCFF
// RBG2 = 775201
// steps = 8
return_array=new Array(steps);
// your code does the above, returns an array with 'steps' number of hex RGB values that
form a gradient between RGB1 and RGB2, using the HSV method above.
return return_array;
}
## Deliverables
1) Zip file containing - the functions above - an example HTML file that calls the javascript and makes a series of
{n} to demonstrate that the gradient works properly.
## Platform
Javascript
Project ID: #3946749