Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃帹 Native color parsing #408

Merged
merged 6 commits into from
Apr 20, 2022
Merged

馃帹 Native color parsing #408

merged 6 commits into from
Apr 20, 2022

Conversation

wcandillon
Copy link
Collaborator

Implements the review commands of #400

Copy link
Collaborator

@chrfalch chrfalch left a comment

Choose a reason for hiding this comment

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

LGTM! Nice one :) Just a small comment about the warning message.

}
let color = Skia.parseColorString(cl);
if (color === undefined) {
console.warn("Skia couldn't parse the following color " + cl);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should we add an explanation here - like "This might affect your drawing performance since the colour will be evaluated in Javascript instead of on the native side at runtime"

@chrfalch chrfalch merged commit 490e184 into main Apr 20, 2022
@chrfalch chrfalch deleted the feat/native-colors branch April 20, 2022 09:19
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.

None yet

2 participants