Coder Social home page Coder Social logo

Comments (8)

mcslee avatar mcslee commented on July 21, 2024 1

Cool - on my TODO list to make this generic. Coming soon...

Feel free to just hijack that code in the meantime if you like.

from lx.

mcslee avatar mcslee commented on July 21, 2024

Hey Dan - just want to make sure I understand what you're asking about here. Which thing are you referring to as the handy widget? Do you just mean the ColorParameter helper itself, or are you referring to one of the existing color-selection UIs?

Shoot me a screen-shot perhaps of which bit you're talking about?

from lx.

drichelson avatar drichelson commented on July 21, 2024

I'm referring to the ColorParameter helper class itself. Here is a screenshot with a box drawn around the 3 knobs for my ColorParameter:
image

  1. It would be cool to add a box like I did so the grouping of them is more intuitive.
  2. It would also be cool to have something indicating the currently selected color.

It could also be cool to have this involve a color picker, but maintain support for modulation...

from lx.

mcslee avatar mcslee commented on July 21, 2024

Gotcha. I made something for this once, but I should really make it more generic. There's a custom color picker UI for the SolidPattern class in P3LX.

https://github.com/heronarts/P3LX/blob/master/src/main/java/heronarts/p3lx/pattern/SolidPattern.java

screen shot 2019-01-24 at 2 42 51 pm

This could probably be more dense, it's kind of a big UI. I could def make this this into a single reusable component though. Would that work for you?

from lx.

drichelson avatar drichelson commented on July 21, 2024

Nice! that looks good. My particular pattern has multiple colors and I'd like to oscillate their values independently.

from lx.

jkbelcher avatar jkbelcher commented on July 21, 2024

Upvote to make this generic and easy to use. I frequently have 1-2 HSB colors as pattern parameters so would use this often. Thanks!

from lx.

drichelson avatar drichelson commented on July 21, 2024

I'm resurfacing after a long break from LX etc. Is this still outstanding? If so I may take a stab at building it.

from lx.

mcslee avatar mcslee commented on July 21, 2024

Hey Dan! There is a UIColorPicker helper for this now:
https://github.com/heronarts/P3LX/blob/dev/src/main/java/heronarts/p3lx/ui/component/UIColorPicker.java

Might not be exactly what you're looking for, but renders a color box which you can click on for a context menu with more detailed color section controls (which should be midi/modulation-mappable).

from lx.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.