Wavelength
Privacy-focused, cross-platform, and open-source communication application
Loading...
Searching...
No Matches
blob_path.h
Go to the documentation of this file.
1#ifndef BLOBPATH_H
2#define BLOBPATH_H
3
4#include <QPainterPath>
5
12class BlobPath {
13public:
27 static QPainterPath CreateBlobPath(const std::vector<QPointF> &control_points, int num_of_points);
28};
29
30#endif // BLOBPATH_H
Provides a static utility function to create a smooth QPainterPath from blob control points.
Definition blob_path.h:12
static QPainterPath CreateBlobPath(const std::vector< QPointF > &control_points, int num_of_points)
Creates a closed, smooth QPainterPath using Catmull-Rom-like spline interpolation.
Definition blob_path.cpp:4