星模様
https://scrapbox.io/files/64677cf3aeefd6001c95a85d.png
コード
code:星模様.cpp
# include <Siv3D.hpp>
void Main()
{
Scene::SetBackground(Palette::White);
while (System::Update())
{
for (auto x : step(9))
{
for (auto y : step(7))
{
if (IsEven(y))Shape2D::Star(30, { x * 100, y * 100 }).draw(Palette::Pink);
else Shape2D::Star(30, { x * 100 + 50, y * 100 }).draw(Palette::Pink);
}
}
}
}