Skip to content

Custom Gradients

Hempfest edited this page Aug 14, 2021 · 1 revision

Fun colors

Any gradient can be any form of RGB you need to use!

public class MyColor extends GradientColor {

	public MyColor(CharSequence RGBstart, CharSequence RGBend) {
		super(RGBstart, RGBend);
	}

}

This is just a modifiable gradient, you can create one of these through use of StringUtils aswell!

		// Green -> Purple
		GradientColor color = new MyColor("#32a852", "#3e32a8").name("Fuschia").context("Test colored text.");
		
		String text = color.join();