Created
December 3, 2018 14:38
-
-
Save ongaeshi/36e93359bf379526646e47e64dc3097e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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