colorful-background-css-generator icon indicating copy to clipboard operation
colorful-background-css-generator copied to clipboard

turn degree

Open VadymVolos opened this issue 9 years ago • 8 comments

Hi! Beautiful generator! It should be added to turn degree

VadymVolos avatar Nov 20 '15 10:11 VadymVolos

Hey VadymVolos,

thank you very much!

What exactly do you mean? It is possible to set the degree for each layer. In fact you have to set it if you create a new ColorfulBackgroundLayer. It's the first parameter.

webcore-it avatar Nov 20 '15 16:11 webcore-it

rotated 360 degrees

VadymVolos avatar Nov 20 '15 16:11 VadymVolos

You mean turn as measurement? Like 1 turn == 2π == 360° ?

webcore-it avatar Nov 20 '15 16:11 webcore-it

From 0 to 360 degrees

VadymVolos avatar Nov 20 '15 16:11 VadymVolos

That's exactly what the first parameter of the ColorfulBackgroundLayer expects.

/**
 * The layer defines the gradient. Layers are combined in the generator the get a colorful background.
 *
 * 
 * @param {Number} degree, default: 45°
 * @param {Number} hue, default: 200
 * @param {Number} saturation, default: 100
 * @param {Number} lightness, default: 70
 * @param {Number} positionColor, default: 0
 * @param {Number} positionTransparency, default: 70
 */
function ColorfulBackgroundLayer(degree, hue, saturation, lightness, positionColor, positionTransparency) {

webcore-it avatar Nov 20 '15 16:11 webcore-it

This? I tried to rotate the page, I did not. 1

VadymVolos avatar Nov 20 '15 16:11 VadymVolos

Ah! Now I get it. :) The website is just an example and does not use all the features of the generator. I'll add that feature to my list. But it'll take a least one week.

webcore-it avatar Nov 20 '15 16:11 webcore-it

Ok. It's just my feedback.

VadymVolos avatar Nov 20 '15 16:11 VadymVolos