GithubHelp home page GithubHelp logo

hex-float-colour-converter's Introduction

Hex Float Colour Converter icon

Convert Hex colours to float colours and vice versa.

Running Hex Float Colour Converter πŸƒβ€β™€πŸƒ

  • You need to have Ruby and Ruby2D installed on your system.

  • Download the source code as zip file or clone this repository to save the source codes and included files.

  • Extract the zip file.

  • Run the main.rb file with Ruby interpreter.

Usage ❓

Running the main.rb will bring up a window. You can type a hex value on the top box, or you can type floating RGB value in the boxes on the 2nd row. The bg will change accordingly.

Typing πŸ‘¨β€πŸ’»πŸ‘©β€πŸ’»

Note that, on the Floating RGB boxes, you can't type a value more than 1. You can type 0.01234 but not 1.0001 - which will reset the value to 1.

You can't type any letter on the hex box. The hex box will only accept input from 0 to 9 and a to f.

Keys ⌨️

  • Backspace to clear the last character of the colour.
  • Escape / P / Q Exits the colour converter.
  • R selects a random colour.
  • S saves the current colour to a file.
  • T clears the current colour.

Mouse 🐭

Hovering the mouse either on the hex box or on the RGB boxes will let you type in the box.

On-Screen Buttons πŸ—”

To press on the on-screen buttons, you can left click, middle click or right click your mouse. The available buttons are:

  • Clear will clear the current colour (equivalent to pressing T).
  • Random! will give you another random colour (equivalent to pressing R).
  • Save will save your current colour to a file (equivalent to pressing S).
  • Exit will simply exit the app (equivalent to pressing Escape / P / Q).

Screenshots πŸ“Έ

Screenshot 1 Screenshot 2

Bugs 🐞

If you find any bug πŸ›, please let me know via GitHubπŸ™ or email me [email protected]

hex-float-colour-converter's People

Contributors

souravgoswami avatar

Stargazers

 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.