Code Monkey home page Code Monkey logo

shape-drawer's Introduction


Shape Drawer

Program that allows users to draw shapes, built with Haskell
This project was created during my university studies at ANU in 2019 and has been transferred from the ANU GitLab server.
Read the technical report »

Table of Contents
  1. About The Project
  2. Usage
  3. Contact
  4. Acknowledgements

About The Project

Using the functional programming language Haskell I created a program that draws shapes (line, polygon, rectangle, circle and ellipse). Find the core algorithm in src/view.hs. To find out how the algorithm has been implemented, read the report.

Built With

Usage

Prerequisites

Installation

  1. Clone the repo
    git clone https://github.com/Tim-W-James/Sushi-Go-AI.git
  2. Navigate into the root directory and run
    cabal build
    cabal run shapes
  3. Follow the local host link to a browser

How to use

Available shapes:

  • line
  • polygon
  • rectangle
  • circle
  • ellipse
Action Effect
Esc (key) Clear the canvas
M (key) Display a mystery image
C (key) Cycle colour (of shape to draw)
T (key) Cycle tool (type of shape to draw)
Backspace/Delete (key) Remove the last added shape
D (key) Print the current Model to the terminal (useful for testing)
Click-drag-release (mouse) When not drawing polygons, draw a shape between the click-point and release-point
Click (mouse) When drawing polygons, add a point to the polygon
Spacebar (key) Finish drawing a polygon, adding it to the canvas.

Contact

Email: [email protected]

Project Link: https://github.com/Tim-W-James/Shape-Drawer

Acknowledgements

  • Australian National University for project skeleton and CodeWorld API implementation

shape-drawer's People

Contributors

tim-w-james avatar hosking avatar lebedka avatar ranaldclouston avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.