Triangle Color Picker Lua Script

Hi all,

I made a script for an HSV triangle color picker. The triangle rotates within a hue ring so that the corner with the most vibrant hue points to its location on the ring.

A triangle picker been requested in earlier posts: 1, 2, 3.

Three sliders adjust simulated lower bit depth, a feature that has come up in: 1, 2, 3, 4, 5, 6, 7.

This is intended for use with the sRGB color space only. It will not work properly with other color spaces, such as Adobe RGB and Display P3.

Here is a short video demo:

3 Likes

Hello! Thank you for creating this extension!
Can you please explain how “pick” button works, because seems like mine isn’t working or i’m not truly understanding how it should work.

Also, i saw your extension a little bit later, and in the previous version there was a little cursor on the triangle, but it disappeared in current version. Can you bring it back, please? It’s humanly inconvenient to remember where your color was on a triangle, if i want to make slight changes. Btw, in the previous version this cursor was disappearing, when i picked color and pressed “FORE”, and i just wanted to commit an issue about that, but found this post and you’ve already updated a lot

The keyboard shortcut for the pick button is Alt+I (Windows, en-us keyboard). Not great, but I figured better than nothing. I’m open to suggestions for a better name or shortcut, though ‘F’, ‘B’ and ‘X’ are taken by the other buttons.

I don’t have any plans on bringing back the reticle. It had more than one bug, conflicted with RGB quantization and I felt I had to cut whatever I could to keep down the lag. If you prefer the old version, this commit might be a good place to return to: 7f7c757.

Okay, gotchu! Sad, that this feature causes bugs. Can you explain please, where i can configure keyboard shortcuts for “PICK” button? For some reason i can’t find this in keyboard shortcuts menu, nor in your script. I’d like to change it to Shift + F, at least for myself, i think it’d be okay

The keyboard shortcuts are in the current script at lines 959 for fore, 973 for back, 989 for pick, 1076 for x. The ampersand precedes the letter that becomes the shortcut. As far as I know these work with the Alt key (Windows), not with Shift.

1 Like