Skip to content
LEDGloves Docs

Color Sine Pattern Generator

Name: COLORSIN

The ColorSin Pattern Generator is a simple generator that varies the intensity of a single color over time. It is useful for creating a simple, smooth, and continuous fades. Currently, the color and fade rate is shared between every pixel. This means that all pixels will be the same color at the same time, and they’ll all fade together.

Example Preset with Editor:

COLORSIN,
	HUE=27, ; 🧡
	SAT=244,
	SIN=4,
https://studio.ledgloves.com
ScreenShot

Parameters List

ParameterTypeDescriptionMinMaxDefault
HUENumberThe hue of the color to fade.02550
SATNumberThe saturation of the color.0255200
SINNumberThe speed of the sine fade.2402

COLORSIN: HUE

Parameter Name: HUE
TypeMinMaxDefaultDescription
Number02550The hue of the color to fade.

HUE is the hue of the color to fade. It is a number between 0 and 255. The hues start with red at 0, and go through the rainbow to magenta, the back to red again at 255. To get white, this param can be left as the default, and SAT (saturation) can be set to 0.

COLORSIN: SAT

Parameter Name: SAT
TypeMinMaxDefaultDescription
Number0255200The saturation of the color.

SAT is the saturation of the color. It is a number between 0 and 255. The saturation is how much color is in the color. 0 is white, and 255 is the most saturated color. Values below 100 are mostly white, and values between 170 and 200 are a nice pastel color.

COLORSIN: SIN

Parameter Name: SIN
TypeMinMaxDefaultDescription
Number2402The speed of the sine fade.

SIN is the speed of the sine fade. It is a number between 2 and 40. The higher the number, the faster the fade. The default value of 2 is a nice slow fade. A value of 40 is a very fast fade.


Preset File Examples

Here are some examples for manually creating a Color Sine Preset text file. You can also use the LEDGloves Studio Flashing Pattern Generator to create and save presets automatically. These examples could be saved to a text file like patterns/<preset_name>.txt.

Example 1 - Basic Example

This example results in a slow, smooth fade from black to a pastel orange/red.

COLORSIN,
  HUE=44,
  SAT=235,
  SIN=3,

Example 2 - Using Defaults

This Example is a fast, deep red fade. Here, we use the default HUE value of 0, which is red.

COLORSIN, SAT=255, SIN=28,

Example 3 - Gold Hearts Color Sin Preset

This is a preset that was created for the ”Gold Hearts” pattern. It is a slow, smooth fade from black to LEDGloves gold.

COLORSIN,
	SIN=4,
	HUE=27,
	SAT=244,