Git Product home page Git Product logo

text-contrast-program's Introduction

Text Contrast Color Program

A Java program which allows users to play with text and background color to test the contrast effects.

Getting Started

Download or git clone this repo and run it with Java 8 or higher versions.

Compile the Program

Run this command on the root folder of the source code.

javac -cp src -d bin src/app/App.java

.class files will be generated in the bin folder.

Then type this command to create a .jar file:

cd bin
jar cfe text.jar app.App *

A .jar file named text.jar will be created.

Run the Program

After we get text.jar file from compilation, we can use the following command to run the .jar file:

java -jar text.jar

Usage Examples

  • Use the RGB sliders to change background colors. The text color will change as well in contrast to the background color.

  • Enter a number on the text fields beside the RGB sliders, and hit enter to change the RGB values.

  • Click on the Text will show up a color picker window. Select a color to change the color of text to test different color sets.

  • Click on the background will show up a color picker window. Select a color to change the color of background.

  • Click on the Quit button and the program will exit.

text-contrast-program's People

Contributors

de2008de avatar

Watchers

James Cloos 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.