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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Axis color property doesn't accept THREE.Color? #203

Closed
wants to merge 1 commit into from

Conversation

sritchie
Copy link
Contributor

@sritchie sritchie commented Dec 26, 2022

@ChristopherChudzicki , here's a repro of a problem I ran into porting the axis.html example. If I pass color objects, all axes appear black. If I pass the hex values, or call getHex(), everything works well:

<Axis color={new THREE.Color(0xff4136).getHex()} />

@sritchie
Copy link
Contributor Author

(Added comments, @ChristopherChudzicki )

@ChristopherChudzicki
Copy link
Owner

That is...really, really weird. So far I have just verified that this seems to be mathbox-react specific, and mathbox itself correctly accepts color instances.

@ChristopherChudzicki
Copy link
Owner

Closing this in favor of unconed/mathbox#49

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