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

When using a predefined value, hue is not set correctly. #4

Closed
JDemler opened this issue Dec 6, 2018 · 3 comments
Closed

When using a predefined value, hue is not set correctly. #4

JDemler opened this issue Dec 6, 2018 · 3 comments
Assignees

Comments

@JDemler
Copy link

JDemler commented Dec 6, 2018

Thanks for this ColorPicker. I really like it.

When not starting with white or black though, the hue in the colorpicker is incorrect:

Hue should be at red, is at cyan

Here the relevant code:

type alias Model =
    { colorPicker : ColorPicker.State }


initialModel : Model
initialModel =
    { colorPicker = ColorPicker.empty }


type Msg = ColorPickerMsg ColorPicker.Msg


update : Msg -> Model -> Model
update msg model =
    model


view : Model -> Html Msg
view model =
    div []
        [ Html.map ColorPickerMsg <| ColorPicker.view (Color.rgb 1.0 0.0 0.0) model.colorPicker
        ]
@simonh1000 simonh1000 self-assigned this Dec 6, 2018
@simonh1000
Copy link
Owner

Thanks for the feedback - I'll try to look at this at the weekend

@simonh1000
Copy link
Owner

this should be fixed in 1.1.5

@JDemler
Copy link
Author

JDemler commented Dec 8, 2018

Thanks for the quick fix!

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

2 participants