Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Ring shaped UI Component #173

gitchomik started this conversation in Feature Requests
Aug 25, 2020 · 2 comments · 6 replies
Discussion options

Ring shaped UI Component with same functions as sliders that allow the user to adjust a specific color channel.

  • multiple rings types covering hue, saturation, value, red, green, blue, alpha
  • multiple rings around the iro.ui.Wheel

Or maybe just extend component: iro.ui.Slider options sliderShape: 'ring'
I think that it will looks very nice, especially around the iro.ui.Wheel

Example:
https://www.canva.com/colors/color-wheel/

You must be logged in to vote

Replies: 2 comments 6 replies

Comment options

This is something I'd really like as well! Implementation-wise it'd be pretty difficult though, especially with current layout stuff and the lack of real conical gradient support in SVG

Maybe one day :)

You must be logged in to vote
5 replies
Comment options

Hi James,

First of all congrats on the slider!
It would be very handy to have a ring layout as well. Nothing complicated, just something that has no fade to white, if you know what I mean.

Here is an example: https://raw.githubusercontent.com/radial-color-picker/vue-color-picker/HEAD/screenshots/thumbnail.png

Really looking forward to your thoughts, thank you!

Marius

Comment options

Hey Marius, thanks for reaching out!

Yeah, I'd really like to implement a ring component. The one thing blocking it is figuring out how to punch a hole in a HTML element, so that whatever is behind the ring will be visible through the middle properly. I was playing with CSS masks for this, and think it should be possible using those somehow, but couldn't quite get there.

Any ideas would be appreciated :)

Comment options

Hey James, thank you for your reply.
Do you think this code can help?

https://codepen.io/mariuselz/pen/gOWVQrO

Comment options

Yeah, I've looked at using borders. You can use border-image to set a gradient, but unfortunately border-image doesn't work with border-radius, which is needed to make the ring a circle.

Comment options

Ah I see..

Comment options

Screenshot 2023年06月09日 at 23 09 52

Finally got something up my sleeve for this, supports nesting and start/end angles ;)

You must be logged in to vote
1 reply
Comment options

Hi James, I'd like to help you implement this interface. Would you be able to share with me your work so far?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Converted from issue

This discussion was converted from issue #128 on April 05, 2021 21:29.

AltStyle によって変換されたページ (->オリジナル) /