Initial Commit

This commit is contained in:
Yousef Khadadeh 2025-07-06 20:43:53 +03:00
commit 6088fc29ed
978 changed files with 353647 additions and 0 deletions

View file

@ -0,0 +1,16 @@
#include "Serializers.hpp"
void to_json(nlohmann::json& j, const SkColor4f& d) {
j = nlohmann::json::array();
j.emplace_back(d.fR);
j.emplace_back(d.fG);
j.emplace_back(d.fB);
j.emplace_back(d.fA);
}
void from_json(const nlohmann::json& j, SkColor4f& d) {
j.at(0).template get_to<float>(d.fR);
j.at(1).template get_to<float>(d.fG);
j.at(2).template get_to<float>(d.fB);
j.at(3).template get_to<float>(d.fA);
}