Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(+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).

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.