Last active
October 15, 2017 20:17
-
-
Save grkvlt/651a2eb89b8ba12f403ce3a08ffed2cb to your computer and use it in GitHub Desktop.
Exploring Iterated Function Systems Raw
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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