Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Changing specific colours on images (https://forums.graalonline.com/forums/showthread.php?t=74739)

Twinny 06-20-2007 10:25 AM

Changing specific colours on images
 
Is it possible to change certain colours of a graphic using scripting? (Kinda like how you can change the colour of bodies). This would be useful as I'd like to be able to change certain parts of pictures to the players elemental colours (especially in ganis) without needing to create a new image for each colour.

JkWhoSaysNi 06-20-2007 02:35 PM

As far as i know it's not possible. What you could do, is have another gani or image overlay which just includes the parts you want to change. Then you can changeimgcolors on that.

zokemon 06-21-2007 12:39 AM

Yup, can't be done.

Twinny 06-21-2007 07:20 AM

Steffffaaaaannnnnn!

The ability is already there, can we have this added to scripts? :D

Angel_Light 06-25-2007 08:32 PM

Create an alpha img then just use changeimgcolors() to the desired color

zokemon 06-25-2007 11:41 PM

Quote:

Originally Posted by Angel_Light (Post 1322376)
Create an alpha img then just use changeimgcolors() to the desired color

He means changing specific colors like if you have an image with yellow, green and blue, just use a command to change the yellow (255, 255, 0) to say red.

Angel_Light 06-26-2007 02:24 AM

make the img into alpha parts then. I get what your saying

DustyPorViva 06-26-2007 02:28 AM

Well he wanted to avoid that, he was looking for something simple like changing colors on the bodies.

JkWhoSaysNi 06-26-2007 02:33 AM

As i remember saying before, if we had direct access to the images as matrices we could have complete control over them, we could tint, stretch/skew, resize, rotate, move, blur, sharpen, etc, without needing GScript functions for it.

zokemon 06-26-2007 03:25 AM

Quote:

Originally Posted by JkWhoSaysNi (Post 1322528)
As i remember saying before, if we had direct access to the images as matrices we could have complete control over them, we could tint, stretch/skew, resize, rotate, move, blur, sharpen, etc, without needing GScript functions for it.

Err...how do you do anything on Graal in-game without GScript functions (and variables, duh.)?

JkWhoSaysNi 06-26-2007 03:35 AM

I mean specific GScript functions for crop/rotate/stretch/tint/etc we could code them ourselves and not have to rely on Stefan implementing them in GS2.

Angel_Light 06-26-2007 04:09 AM

we can already rotate with the P.E.

JkWhoSaysNi 06-26-2007 04:15 AM

Yes and stretch but my point it we wouldn't be restricted to the functions that already exist because we could make our own functions using transformation matrixes or for affine transformations or apply filters like blur and sharpen, etc


All times are GMT +2. The time now is 09:17 PM.

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