Skip to content

Latest commit

 

History

History
26 lines (20 loc) · 498 Bytes

Sketch.md

File metadata and controls

26 lines (20 loc) · 498 Bytes

スケッチブック

スケッチブック

# include <Siv3D.hpp>

void Main()
{
	Image image(Window::Size(), Palette::White);

	DynamicTexture texture(image);

	while (System::Update())
	{
		if (Input::MouseL.pressed)
		{
			const Point from = Input::MouseL.clicked ? Mouse::Pos() : Mouse::PreviousPos();

			Line(from, Mouse::Pos()).overwrite(image, 8, Palette::Orange);

			texture.fill(image);
		}

		texture.draw();
	}
}