Added ability to reset level value in Blobs.

This commit is contained in:
23rd 2020-12-21 14:02:37 +03:00
parent d340430e85
commit 1e2799245c
2 changed files with 5 additions and 0 deletions

View file

@ -69,6 +69,10 @@ void Blobs::setLevel(float value) {
_levelValue.start(to);
}
void Blobs::resetLevel() {
_levelValue.reset();
}
void Blobs::paint(Painter &p, const QBrush &brush, float outerScale) {
const auto opacity = p.opacity();
for (auto i = 0; i < _blobs.size(); i++) {

View file

@ -37,6 +37,7 @@ public:
Blob::Radiuses radiusesAt(int index);
void setLevel(float value);
void resetLevel();
void paint(Painter &p, const QBrush &brush, float outerScale = 1.);
void updateLevel(crl::time dt);