This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <SFML/Graphics.hpp> | |
// include skia | |
#include "SkCanvas.h" | |
#include "SkGraphics.h" | |
#include "SkImageEncoder.h" | |
#include "SkString.h" | |
#include "SkTemplates.h" | |
#include "SkTypeface.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "Gradient.h" | |
#include <vector> | |
Gradient::GradientColor::GradientColor(float _r, float _g, float _b, float _a):r(_r), g(_g), b(_b), a(_a) {} | |
Gradient::GradientColor::GradientColor():r(), g(0), b(0), a(0) {} | |
const Gradient::GradientColor & Gradient::GradientColor::operator+=(const GradientColor &lhs){ | |
r += lhs.r; | |
g += lhs.g; | |
b += lhs.b; | |
a += lhs.a; |