Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
A jam submission

AGK Color PickerView project page

Add a colour picker to your AGK game or app without a plugin
Submitted by Digicode Labs — 3 days, 2 hours before the deadline
Add to collection

Play tool

AGK Color Picker's itch.io page

Results

CriteriaRankScore*Raw Score
Ease of use#23.8003.800
Quality#24.0004.000
Usefulness#34.4004.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.

Submitted(+1)

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).

Developer

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.

Submitted

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.

Submitted(+1)

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!

Developer(+1)

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.