This commit is contained in:
Akko
2023-05-15 16:23:02 +02:00
63 changed files with 1067 additions and 948 deletions

13
color.h
View File

@@ -7,7 +7,8 @@
enum class ColorType {
Constant,
LinearGradient,
RadialGradient
RadialGradient,
PatchGradient
};
struct Constant {
@@ -61,3 +62,13 @@ struct RadialGradient {
float *stop_offsets;
float *stop_colors; // rgba
};
/*
struct PatchGradient {
PatchGradient(const Vector2f &topLeft,
const Vector2f &topRight,
const Vector2f &bottomLeft,
const Vector2f &bottomRight,
const )
}
*/