convert 3 c# functions to JS

Completed Posted Dec 2, 2006 Paid on delivery
Completed 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

C# Programming Engineering JavaScript MySQL PHP Software Architecture Software Testing

Project ID: #3946749

About the project

2 proposals Remote project Active Dec 2, 2006

Awarded to:

liviuiancuta

See private message.

$29.75 USD in 2 days
(57 Reviews)
5.1

2 freelancers are bidding on average $43 for this job

kovava

See private message.

$55.25 USD in 2 days
(53 Reviews)
5.8