Giter Club home page Giter Club logo

draw's Introduction

Draw

draw is an simple drawing tool in the terminal. Hold your mouse down and move it across the screen to draw anything you want!

Draw

Installation

go install github.com/maaslalani/draw@latest

Usage

draw

Boxes

Draw boxes by clicking and dragging the right mouse button, releasing the right mouse button will draw the box.

Voila! You have a box drawn where you want it.

Draw Boxes

Text Insertion

Tap the right mouse button to set an anchor for inserting text and type away! Press ESC to exit insert mode.

Insert Text

Saving Drawings

draw automatically saves your latest masterpiece to /tmp/draw.txt by default. You can change this location by setting the environment variable $DRAW_FILE.

export DRAW_FILE=/path/to/draw.txt

To view this drawing use cat or mv the drawing to somewhere more permanent. If you already know you want to save the drawing, run draw with the file path where you want to save the drawing: draw masterpiece.txt.

Controls

  • ctrl+c to exit.
  • Press any key to draw with that character.
  • Press 1 for red.
  • Press 2 for green.
  • Press 3 for yellow.
  • Press 4 for blue.
  • Press 5 for magenta.
  • Press 6 for cyan.
  • Press 7 for gray.
  • Press Alt+0 - Alt+9 to draw with digits.

draw's People

Contributors

maaslalani avatar erickotato avatar kishorpokharel avatar thamognya 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.