Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Getting a specific colour value (https://forums.graalonline.com/forums/showthread.php?t=134265657)

callimuc 01-30-2012 07:52 PM

Getting a specific colour value
 
1 Attachment(s)
I think I saw a script or a command somewhere which would return the specific colour of a x/y coordinate. I couldn´t find it though just the one by tig (http://forums.graalonline.com/forums...d.php?t=797309) which won´t even get the colour of a x/y, just return it in some other way.

Well like I said I think I saw such a command somewhere but wasn´t sure (maybe I mixed it with tigs one?) but is it possible for a pallet like this?
Attachment 54243
Or is there any other way to get something like that working?
I wanted to make a GUI where you can choose the colour by that and it will find the correct image (body, ....) and set it than. But my only problem is to get the colour. My idea would have been to add different GuiControls over the image or have single GuiShowImgCtrl´s with the image inside it where I can define the colour, but maybe there is an easier way?

Tolnaftate2004 01-30-2012 08:31 PM

getimgpixel( string image, int x, int y )

I suspect it returns { r, g, b, a } or something like that, but I'm not sure.

callimuc 01-30-2012 09:30 PM

Quote:

Originally Posted by Tolnaftate2004 (Post 1683226)
getimgpixel( string image, int x, int y )

I suspect it returns { r, g, b, a } or something like that, but I'm not sure.

Thanks really helped me. And it seems to return {r, g, b}


All times are GMT +2. The time now is 07:51 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.