From 002313f9b324bddc6e7d6fbd0821e0a90b83b713 Mon Sep 17 00:00:00 2001 From: Fabian Schlenz Date: Thu, 23 May 2019 22:14:44 +0200 Subject: [PATCH] Made sinematrix3 more pastel-ly. --- effects.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/effects.h b/effects.h index 2db6041..e7ff168 100644 --- a/effects.h +++ b/effects.h @@ -184,9 +184,8 @@ class Sinematrix3 : public Effect { for ( int x = 0; x < LED_WIDTH; x++ ) { for ( int y = 0; y < LED_HEIGHT; y++ ) { Vector c = add(multiply( multiply(rotate, zoom), { .x1 = x - rcx, .x2 = y - rcy } ), translate); - //Vector c2 = add(multiply( multiply(zoom2, rotate2), { .x1 = x, .x2 = y } ), translate2); - setPixel(window, x, y, CHSV((basecol + basefield(c.x1, c.x2)) * 255, 255, 255)); - //leds[XYsafe(x,y)] = CHSV((basecol+basefield(c.x1, c.x2))*255, 255, 255); //31+(sines(c2.x1-10, c2.x2-10)*224)); + int sat = (basecol + basefield(c.x1, c.x2)) * 255; + setPixel(window, x, y, CHSV(sat, 120, 255)); } } }