Play tool
AGK Color Picker's itch.io pageResults
Criteria | Rank | Score* | Raw Score |
Ease of use | #2 | 3.800 | 3.800 |
Quality | #2 | 4.000 | 4.000 |
Usefulness | #3 | 4.400 | 4.400 |
Ranked from 5 ratings. Score is adjusted from raw score by the median number of ratings per game in the jam.
Leave a comment
Log in with itch.io to leave a comment.
Comments
Unlike the other submissions, this one is a code module.
I like that.
- Easy to integrate into your own programs.
- Meaningful functions.
- Scope of application rather attracts tool developers.
A pipette function for the entire AGKScreen would be nice.
Around line 127, you have:
colorPickerCollection[colorPickerID].rgb.r# = 255
colorPickerCollection[colorPickerID].rgb.r# = 255
colorPickerCollection[colorPickerID].rgb.g# = 0
colorPickerCollection[colorPickerID].rgb.b# = 0
That first line should probably be:
colorPickerCollection[colorPickerID].rgb.a# = 255
Also, I have found that if you get a pixel from a MemBlock as an integer then parse it with GetColorRed() GetColorGreen() GetColorBlue() GetColorAlpha() that it makes for more readable code (instead of getting individual bytes).
Thanks, I've fixed the first bug you mentioned and re-uploaded a new source code zip file.
I didn't really understand your second suggestion. GetColor* require an color to be created with MakeColor, and I don't know what you would pass in as parameters for that command other than the 4 individual bytes.
GetMemblockInt( mb, offset ) where the Memblock is made from an image and the offset is 12 + a multiple of 4. You can read and write colors made with MakeColor directly into a Memblock.
can a "simple color picker" be my favorite of the bunch? with a nice design, native code provided so i can expand export options in not relying on a platform-specific plugin, i wish 6 stars was a Usefulness option. thanks for this!
Thank you, don't forget that you can also customise it so that each component is sized and positioned differently. I'll be using it in AGK playground but will most likely reposition parts of it.