Skip to content

Instantly share code, notes, and snippets.

@grkvlt
Last active October 15, 2017 20:17
Show Gist options
  • Save grkvlt/651a2eb89b8ba12f403ce3a08ffed2cb to your computer and use it in GitHub Desktop.
Save grkvlt/651a2eb89b8ba12f403ce3a08ffed2cb to your computer and use it in GitHub Desktop.
Exploring Iterated Function Systems Raw
public void setGradientStart(Color value) {
set(GRADIENT_START_PROPERTY, String.format("%06x", value.getRGB() & RGB24));
}
private <T> T cast(String value, Class<T> type) {
// ...
if (Color.class == type) {
return (T) Color.decode(Integer.toString(Integer.parseUnsignedInt(value, 16) & RGB24));
}
// ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment