27#include <nlohmann/json.hpp>
35 using JSON = nlohmann::json;
54 void roundCorners(
const std::vector<std::pair<Vector2f, float>>& lines);
85 Path(
const std::vector<Vector2f>& lines,
float cornerRadius);
93 Path(
const std::vector<std::pair<Vector2f, float>>& lines);
185 p.
beziers = j.get<std::vector<CubicBezier>>();
void bezierTo(Vector2f controlPoint1, Vector2f controlPoint2, Vector2f end)
void moveTo(Vector2f pos)
void roundCorners(const std::vector< std::pair< Vector2f, float > > &lines)
void operator+=(const Path &other)
void arcTo(Vector2f end, Vector2f center, bool clockwise)
void lineTo(Vector2f pos)
Path operator*(float value) const
std::vector< CubicBezier > beziers
Rect getBoundingBox() const
void to_json(JSON &j, const Matrix< w, h, T > &p)
void from_json(const JSON &j, Matrix< w, h, T > &p)
std::ostream & operator<<(std::ostream &os, const Kale::Matrix< w, h, T > &mat)