started arc/circle plotting algorithm
This commit is contained in:
+7
-2
@@ -38,14 +38,19 @@ int main(void) {
|
|||||||
|
|
||||||
UwU::Surface surface = UwU::Surface(w, h, onKey);
|
UwU::Surface surface = UwU::Surface(w, h, onKey);
|
||||||
|
|
||||||
|
UwU::Color fuchsia = UwU::Color(0xb00b69ff);
|
||||||
|
UwU::Color red = UwU::Color(0xff0000ff);
|
||||||
|
UwU::Color green = UwU::Color(0x00ff00ff);
|
||||||
|
UwU::Color blue = UwU::Color(0x0000ffff);
|
||||||
|
|
||||||
// UwU::ColorShader fuchsia = UwU::ColorShader(UwU::Color(0xb00b69ff));
|
// UwU::ColorShader fuchsia = UwU::ColorShader(UwU::Color(0xb00b69ff));
|
||||||
UwU::VGradientShader bisexual = UwU::VGradientShader(69, 420, UwU::Color(0xff0000ff), UwU::Color(0x0000ffff));
|
UwU::VGradientShader bisexual = UwU::VGradientShader(69, 420, UwU::Color(0xff0000ff), UwU::Color(0x0000ffff));
|
||||||
UwU::Rectangle rectangle = UwU::Rectangle(69, 69, 420, 420);
|
UwU::Rectangle rectangle = UwU::Rectangle(69, 69, 420, 420);
|
||||||
rectangle.draw(surface.buffer, bisexual);
|
rectangle.draw(surface.buffer, bisexual);
|
||||||
|
|
||||||
UwU::ColorShader green = UwU::ColorShader(UwU::Color(0x00ff00ff));
|
UwU::ColorShader greenShader = UwU::ColorShader(green);
|
||||||
UwU::Point point = UwU::Point(187, 37);
|
UwU::Point point = UwU::Point(187, 37);
|
||||||
point.draw(surface.buffer, green);
|
point.draw(surface.buffer, greenShader);
|
||||||
|
|
||||||
UwU::ColorShader blue = UwU::ColorShader(UwU::Color(0x0000ffff));
|
UwU::ColorShader blue = UwU::ColorShader(UwU::Color(0x0000ffff));
|
||||||
UwU::Trapezoid trapezoid = UwU::Trapezoid(100, 300, 690, 320, 720, 780);
|
UwU::Trapezoid trapezoid = UwU::Trapezoid(100, 300, 690, 320, 720, 780);
|
||||||
|
|||||||
@@ -90,5 +90,9 @@ namespace UwU {
|
|||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// plot a 90 degree arc
|
||||||
|
static void fastArc(uint16_t radius, uint16_t* LUT) {
|
||||||
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user