This class contains all the methods implementation documentation.
1.0.0
public Rainbow( )
This function will create a colors mapping that you need for getting different colors.
public java.lang.String get( java.lang.String value )
this function will return the all the rainbow combinations
For value parameter you can see available FORMATS, COLORS and BACKGROUNDS
Rainbowed codes
public java.lang.String getFormat( java.lang.String format )
Returns the format code you need to change the string format
For format parameter you can see available FORMATS.
formatted code
public java.lang.String getColor( java.lang.String color )
Returns the color code for changing text to colored text
For color parameter you can see available COLORS.
color codes
public java.lang.String getBG( java.lang.String background )
Returns the colored background code for coloring backgrounds
background --> you can see available BACKGROUND docs.
background color codes
public java.lang.String getFormatColor( java.lang.String format, java.lang.string color )
this function will return the formatted color code
formatted color code
public java.lang.String getFormatBG( java.lang.String format, java.lang.string background )
this function will return formatted background code
For format and background parameters you can see available FORMATS and BACKGROUNDS.
formatted background code
public java.lang.String getColorBG( java.lang.String color, java.lang.string background )
this function will return colored background code
For color and background parameters you can see available COLORS and BACKGROUNDS.
colored bacground code
public java.lang.String getRainbow( java.lang.String format, java.lang.String color, java.lang.string background )
this function will return rainbowed code
For format, color and background parameters you can see available FORMATS, COLORS and BACKGROUNDS.
rainbowed code
public java.lang.String getFormatString( java.lang.String format, java.lang.String str, boolean end )
This function will generate the formatted string according to the format passed
format --> you can see available FORMAT docs.
str --> is the string to be formatted
end --> is whether to end the color coding or not
formatted string
public java.lang.String getColorString( java.lang.String color, java.lang.String str, boolean end )
This function will generate the colored string according to the color passed
color --> you can see available COLOR docs.
str --> is the string to be formatted
end --> is whether to end the color coding or not
color codes
public java.lang.String getBGString( java.lang.String background, java.lang.String str, boolean end )
This function will generate the filled background string according to the background passed
background --> you can see available BACKGROUND docs.
str --> is the string to be colored
end --> is whether to end the color coding or not
filled background string
public java.lang.String getFormatColorString( java.lang.String format, java.lang.String color, java.lang.String str, boolean end )
this function will return the formatted colored string
format --> you can see available FORMAT docs.
color --> you can see available COLOR docs.
str --> is the string to be colored
end --> is whether to end the color coding or not
formatted color string
public java.lang.String getFormatBGString( java.lang.String format, java.lang.String background, java.lang.String str, boolean end )
this function will return formatted background string
format --> you can see available FORMAT docs.
background --> you can see available BACKGROUND docs.
str --> is the string to be colored
end --> is whether to end the color coding or not
formatted background string
public java.lang.String getColorBGString( java.lang.String color, java.lang.string background, java.lang.String str, boolean end )
this function will return colored background string
color --> you can see available COLOR docs.
background --> you can see available BACKGROUND docs.
str --> is the string to be colored
end --> is whether to end the color coding or not
colored bacground string
public java.lang.String getRainbowString( java.lang.String format, java.lang.String color, java.lang.string background, java.lang.String str, boolean end )
this function will return rainbowed string
format --> you can see available FORMAT docs.
color --> you can see available COLOR docs.
background --> you can see available BACKGROUND docs.
str --> is the string to be colored
end --> is whether to end the color coding or not
rainbowed string