diff --git a/example b/example deleted file mode 100755 index 01d258c..0000000 Binary files a/example and /dev/null differ diff --git a/example.cpp b/example.cpp index b3373d5..bdedeec 100644 --- a/example.cpp +++ b/example.cpp @@ -38,14 +38,19 @@ int main(void) { 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::VGradientShader bisexual = UwU::VGradientShader(69, 420, UwU::Color(0xff0000ff), UwU::Color(0x0000ffff)); UwU::Rectangle rectangle = UwU::Rectangle(69, 69, 420, 420); 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); - point.draw(surface.buffer, green); + point.draw(surface.buffer, greenShader); UwU::ColorShader blue = UwU::ColorShader(UwU::Color(0x0000ffff)); UwU::Trapezoid trapezoid = UwU::Trapezoid(100, 300, 690, 320, 720, 780); diff --git a/helpers.cpp b/helpers.cpp index e0f935c..6d95f65 100644 --- a/helpers.cpp +++ b/helpers.cpp @@ -90,5 +90,9 @@ namespace UwU { } return; } + + // plot a 90 degree arc + static void fastArc(uint16_t radius, uint16_t* LUT) { + } }; }