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

Add Color Temperature and RGB Color #40

Open
mienaikoe opened this issue Nov 13, 2014 · 4 comments
Open

Add Color Temperature and RGB Color #40

mienaikoe opened this issue Nov 13, 2014 · 4 comments
Assignees
Milestone

Comments

@mienaikoe
Copy link

On Cosmosis, we used some equations we found online to calculate the Color Temperature, and subsequently the RGB color, from the B-V Color.
You can find our ruby implementation here:
https://github.com/HacktheUniverse/cosmos/blob/master/data/speck/stars.rb

It would be great to get this data into the API so star color could be implemented without frontend calcuation.

@nicholalexander
Copy link
Contributor

@mienaikoe - Awesome idea, thanks! i think we can make a new rake task like rake:star:add_rgb which goes through the database and calculates rgb (and that second number - which is the same as lumbinosity - is being used on the front as the alpha in the rgba, yes?

@nicholalexander nicholalexander modified the milestone: Release 2 Nov 14, 2014
@mienaikoe
Copy link
Author

Well the luminosity isn't used in that method. It's a relic from doing that method at midnight.

Luminosity could be factored in if you want. Maybe absolute magnitude would be more suited to the task? I don't know enough about astronomy to comment on that.

I like the rake task idea though.

@nicholalexander
Copy link
Contributor

OK cool. Let's keep it as a pure rgb calculation. Really cool idea, thanks!
On Nov 14, 2014 12:05 PM, "Jesse" [email protected] wrote:

Well the luminosity isn't used in that method. It's a relic from doing
that method at midnight.

Luminosity could be factored in if you want. Maybe absolute magnitude
would be more suited to the task? I don't know enough about astronomy to
comment on that.

Reply to this email directly or view it on GitHub
#40 (comment)
.

@surenm
Copy link
Member

surenm commented May 31, 2015

@nicholalexander Do you want to fix this up?

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

No branches or pull requests

3 participants