Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Erweiterung]Feuereffekt Horizontal #2

Open
Vanixxx opened this issue Dec 19, 2019 · 0 comments
Open

[Erweiterung]Feuereffekt Horizontal #2

Vanixxx opened this issue Dec 19, 2019 · 0 comments

Comments

@Vanixxx
Copy link

Vanixxx commented Dec 19, 2019

Da mir der Fire2012 Effekt für horizontale Strips nicht so gut gefiel, habe ich einen Effekt in FastLed konvertiert und dieser sieht meiner Meinung nach für diesen Zweck besser aus.
Möglicherweise sind die Farben etwas anzupassen.

void fire_hor(){
    int r = 255; //255
    int g = 70;  //96
    int b = 12;  //12
    
    for(int x = 0; x < NUM_LEDS; x++)
    {
    int flicker = random(0,50); //0-40
    int r1 = r-flicker;
    int g1 = g-flicker;
    int b1 = b-flicker;
    if(g1<0) g1=0;
    if(r1<0) r1=0;
    if(b1<0) b1=0;
    //strip.setPixelColor(x,r1,g1, b1);
    setPixel(x, r1, g1, b1);
    }
    showStrip();
    delay(random(50,150));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant