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

Incorrect data type in Color struct #6

Open
shprotru opened this issue May 18, 2021 · 0 comments
Open

Incorrect data type in Color struct #6

shprotru opened this issue May 18, 2021 · 0 comments

Comments

@shprotru
Copy link

shprotru commented May 18, 2021

Should Color struct data type be float64 instead of int? hms api gate answers: Illegal payload, blue of color in light settings must rang [0,1] when I pass integer value bigger than 1.

type Color struct {
       	Alpha int `json:"alpha"`
       	Red   int `json:"red"`
       	Green int `json:"green"`
       	Blue  int `json:"blue"`
}
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

No branches or pull requests

1 participant