Skip to content

Instantly share code, notes, and snippets.

@ongaeshi
Created December 3, 2018 14:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ongaeshi/36e93359bf379526646e47e64dc3097e to your computer and use it in GitHub Desktop.
Save ongaeshi/36e93359bf379526646e47e64dc3097e to your computer and use it in GitHub Desktop.
void Main()
{
Window::Resize(640, 640);
double t = 0.0;
while (System::Update()) {
t += System::DeltaTime() * 0.2;
for (int32 i = 0; i < 9; i++) {
const Vec2 center(120 + i % 3 * 200, 120 + i / 3 * 200);
Shape2D::Ngon(i + 3, 80, center, t)
.draw(HSV(i * 80))
.drawFrame(10, HSV(i * 80, 1.0, 0.7));
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment