Code Monkey home page Code Monkey logo

buttontool's Introduction

ButtonTool

A little HTML tool that aids in the creation of GUI elements using CSS (as opposed to an image editor such as Photoshop).

It was developed and tested in a couple of hours in Firefox, but may work on other browsers with some porting.

Screenshot

Usage

git clone this repo and browse the index.html to use.

Important! ButtonTool MUST be run locally, that is without a web server. This is due to the need for canvas to grab a screenshot of the embedded iframe which current browser security restricts.

Actual usage is pretty straightforward, modify the CSS under the button preview and the results should update instantly. When you're done you can save the image that is output in the square at the top of the page. This image can then be imported into a tool such as draw9patch for usage in the Android SDK, etc.

Todo

  • Less.js support; you will note that less.js is already included but not yet utilised.
  • Custom width/height of output image.
  • Actual (optional) 9-patch generation from within this page, to save the extra step.

buttontool's People

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.