Something went wrong. Try again.
art software for the rest of us
drawing paint image sdl art
Something went wrong. Try again.
C
1234567891011121314151617#pragma once
class Rectangle {protected: double x, y, width, height, roundness = 0; double r = 1, g = 1, b = 1, a = 1; double br = 1, bg = 0, bb = 1, ba = 1; double bw = 0;public: Rectangle(double x, double y, double width, double height); void SetColor(double r, double g, double b, double a); void SetBorderColor(double r, double g, double b, double a); void SetBorderWidth(double width); void SetRoundness(double roundness); void Render();};