webcore-it / colorful-background-css-generator

A colorful css gradient background generator
http://www.webcore-it.com/colorful-background/
MIT License
319 stars 46 forks source link

turn degree #1

Open VadymVolos opened 8 years ago

VadymVolos commented 8 years ago

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

webcore-it commented 8 years ago

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.

VadymVolos commented 8 years ago

rotated 360 degrees

webcore-it commented 8 years ago

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

VadymVolos commented 8 years ago

From 0 to 360 degrees

webcore-it commented 8 years ago

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) {
VadymVolos commented 8 years ago

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

webcore-it commented 8 years ago

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.

VadymVolos commented 8 years ago

Ok. It's just my feedback.