Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Catalog · How the catalog works
Anything · Lazarus or Delphi
Random projectRandom project

Line-Drawing-With-Delphi

Small project demonstrating straight line drawing with the Delphi Canvas Component

View on GitHub

Member rating

No ratings yet.

Sign in to rate this project.

README

Line-Drawing-With-Delphi

Demonstrates how to draw a building map onto a delphi canvas, using straight lines to signify walls, and adding buttons to indicate individual rooms.

Main Features:

  • Lines drawn by a drag and click method onto the canvas
  • A snap to grid button allows the lines to be snapped to the nearest 10pixel location
  • Rectangles can be added to the canvas to signify rooms, these change colour when clicked with a mouse
  • An undo button uses a queing algorithm to undo up to the last 10 items added to the canvas.

Written by Jacob Unwin - http://www.jacob-unwin.com - jacobsax@gmail.com