Hyelicht 2.0
Controller application for the Hyelicht shelf. Paint on the shelf with colors, turn on the fireplace mode, and more.
Loading...
Searching...
No Matches
fireanimation.h
1/*
2 * SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
3 * SPDX-FileCopyrightText: 2021-2022 Eike Hein <sho@eikehein.com>
4 */
5
6#pragma once
7
8#include "abstractanimation.h"
9
10#include <QColor>
11
12#include <algorithm>
13#include <random>
14
16
26{
27 Q_OBJECT
28
29 public:
31
34 explicit FireAnimation(QObject *parent = nullptr);
35 ~FireAnimation() override;
36
38
41 QString name() const override;
42
43 private:
44 QColor m_baseColor;
45 bool m_skipFrame;
46
47
48 std::random_device m_rd;
49 std::mt19937 m_e;
50 std::uniform_int_distribution<int> m_distColor;
51 std::uniform_int_distribution<int> m_distInterval;
52};
Abstract base class for LED strip animations operating on LedStrip.
Definition abstractanimation.h:29
Simple fire animation to turn the shelf into a digital fireplace.
Definition fireanimation.h:26
QString name() const override
The name of this animation.
Definition fireanimation.cpp:63