Skip to content

Conversation

@Glinkis
Copy link
Contributor

@Glinkis Glinkis commented Feb 18, 2018

No description provided.

@Glinkis Glinkis changed the title Color tags refactor ColorTags refactor Feb 18, 2018
@Glinkis Glinkis changed the title ColorTags refactor Refactors ColorTags Feb 18, 2018
@Glinkis Glinkis closed this Feb 19, 2018
@Glinkis Glinkis reopened this Feb 19, 2018
@Glinkis Glinkis closed this Feb 19, 2018
@Glinkis Glinkis reopened this Feb 19, 2018
color.a = Integer.parseInt(colorStr.subSequence(6, 8).toString(), 16) / 255f;
}
readHexColor(colorStr);
return;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tabs

} else if (colorStr.length() == 4) {
color.a = Integer.parseInt(Character.toString(colorStr.charAt(3)), 16) / 15f;
}
color.a = 0;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is wrong, this needs to be a 1. If you look at how color.set was used previously.

} else if (colorStr.length() == 4) {
readColorValue(colorStr, 3);
} else {
color.a = 0;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be set to 1 otherwise we loose the color.

if (baseAlpha != -1) {
color.a = baseAlpha;
} else if (colorStr.length() == 4) {
readColorValue(colorStr, 3);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you are forgetting to put color.a = readColorValue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants