Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 01-30-2012, 07:52 PM
callimuc callimuc is offline
callimuc's Avatar
Join Date: Nov 2010
Location: Germany
Posts: 1,015
callimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to behold
Getting a specific colour value

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?
Name:  letalis_taylor-color1.png
Views: 96
Size:  1.3 KB
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?
__________________
MEEP!
Reply With Quote
  #2  
Old 01-30-2012, 08:31 PM
Tolnaftate2004 Tolnaftate2004 is offline
penguin.
Join Date: Jul 2004
Location: Berkeley, CA
Posts: 534
Tolnaftate2004 is a jewel in the roughTolnaftate2004 is a jewel in the rough
Send a message via AIM to Tolnaftate2004
getimgpixel( string image, int x, int y )

I suspect it returns { r, g, b, a } or something like that, but I'm not sure.
__________________
◕‿‿◕ · pfa · check yer syntax! · src

Killa Be: when i got that locker in 6th grade the only thing in it was a picture of a midget useing a firehose :/
Reply With Quote
  #3  
Old 01-30-2012, 09:30 PM
callimuc callimuc is offline
callimuc's Avatar
Join Date: Nov 2010
Location: Germany
Posts: 1,015
callimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to behold
Quote:
Originally Posted by Tolnaftate2004 View Post
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}
__________________
MEEP!
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 09:16 AM.


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