Class ColorsTrue
- java.lang.Object
-
- com.github.rvesse.airline.examples.io.ColorDemo<TrueColor>
-
- com.github.rvesse.airline.examples.io.ColorsTrue
-
- All Implemented Interfaces:
ExampleRunnable
@Command(name="colors-true", description="Displays some text in true (24 bit) color (if your terminal supports this)") public class ColorsTrue extends ColorDemo<TrueColor>
-
-
Constructor Summary
Constructors Constructor Description ColorsTrue()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private int
getColor(int c)
protected TrueColor[]
getColors()
static void
main(java.lang.String[] args)
protected ColorizedOutputStream<TrueColor>
openOutputStream()
-
-
-
Field Detail
-
red
@Option(name="--red", title="Red", description="Sets the desired red component") private int red
-
green
@Option(name="--green", title="Green", description="Sets the desired green component") private int green
-
blue
@Option(name="--blue", title="Blue", description="Sets the desired blue component") private int blue
-
values
private int[] values
-
-
Method Detail
-
main
public static void main(java.lang.String[] args)
-
openOutputStream
protected ColorizedOutputStream<TrueColor> openOutputStream()
- Specified by:
openOutputStream
in classColorDemo<TrueColor>
-
getColor
private int getColor(int c)
-
-