Skip to content

Proof of concept about a console drawing tool built on Symfony

Notifications You must be signed in to change notification settings

JulianBustamante/drawing-tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Drawing Tool

This is a basic drawing tool written in PHP as a part of a code challenge. Hurry up to clone it because I will remove it.

Requirements

PHP needs to be a minimum version of PHP 5.3.9

Commands

  • C w h Create a new canvas of width w and height h.
  • L x1 y1 x2 y2 Create a new line from (x1, y1) to (x2, y2). Only horizontal and vertical lines supported.
  • R x1 y1 x2 y2 Create a new rectangle whose upper left corner is (x1, y1) and lower right corner is (x2, y2).
  • B x y c Fill the entire area connected to (x, y).

Usage

You can run the drawing tool with the following command:

 $ cd path/to/DrawingTool/
 $ ./bin/drawingtool

Tests

You can run the unit tests with the following command:

 $ cd path/to/DrawingTool/
 $ ./vendor/bin/phpunit

About

Proof of concept about a console drawing tool built on Symfony

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages