Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Future Improvements (https://forums.graalonline.com/forums/forumdisplay.php?f=10)
-   -   TShowImg.solidify (https://forums.graalonline.com/forums/showthread.php?t=134256125)

DustyPorViva 09-19-2009 08:05 AM

TShowImg.solidify
 
TShowImg.solidify = true;

Solidifies an image/gani into a single color. I imagine gray would be a good color as it's neutral for color effects.

Example:
http://i34.tinypic.com/24ep1dj.png
Left images would solidify and the result would be the right images. Why? More flexibility with image effects. For example, making shadows out of ganis. Easy-to-do outlines to images; just draw a second image under it, solidify, and zoom = 1.25 or something.

This could also be achieved with a contrast value instead... so if you find that would be a better alternative, go ahead ;)

Soala 09-19-2009 11:00 AM

Wow that'd be definitively helpful

Crow 09-19-2009 11:34 AM

Already possible with images. Example code I used to get the effect:
PHP Code:

with (findImg(200)) {
  
256;
  
layer 5;
  
  
polygon = { 256256288256288288256288 };
  
image "stone.png";
  
red green blue 0;
  
alpha 0.5;



alskdjfhg 09-19-2009 02:30 PM

Quote:

Originally Posted by Crow (Post 1523876)
Already possible with images. Example code I used to get the effect:
PHP Code:

with (findImg(200)) {
  
256;
  
layer 5;
  
  
polygon = { 256256288256288288256288 };
  
image "stone.png";
  
red green blue 0;
  
alpha 0.5;



ah yes, Crow the lazy one. :)

Crow 09-19-2009 02:34 PM

Quote:

Originally Posted by alskdjfhg (Post 1523896)
ah yes, Crow the lazy one. :)

Glad to see you again (:

alskdjfhg 09-19-2009 02:36 PM

Quote:

Originally Posted by Crow (Post 1523898)
Glad to see you again (:

u 2!

DustyPorViva 09-19-2009 02:53 PM

Quote:

Originally Posted by Crow (Post 1523876)
Already possible with images. Example code I used to get the effect:
PHP Code:

with (findImg(200)) {
  
256;
  
layer 5;
  
  
polygon = { 256256288256288288256288 };
  
image "stone.png";
  
red green blue 0;
  
alpha 0.5;



I don't know if it's the same, however. Try doing it with a gani, for example, or make it a color...

Crow 09-19-2009 03:21 PM

Quote:

Originally Posted by DustyPorViva (Post 1523900)
I don't know if it's the same, however. Try doing it with a gani, for example, or make it a color...

I tried it with a gani, that's why I said it's possible with images. Ganis won't work, but images are fine. The polygon basically adapts to the image.

DustyPorViva 09-19-2009 03:28 PM

Quote:

Originally Posted by Crow (Post 1523904)
I tried it with a gani, that's why I said it's possible with images. Ganis won't work, but images are fine. The polygon basically adapts to the image.

Eh... I think you can do it without the polygon. But would you be able to color a door pure blue, for example?

Crow 09-19-2009 03:33 PM

Quote:

Originally Posted by DustyPorViva (Post 1523907)
Eh... I think you can do it without the polygon. But would you be able to color a door pure blue, for example?

Yup, of course. But you'd need the polygon for that, quite sure about that.

fowlplay4 09-19-2009 05:09 PM

Should add a findimg().mirror property to compliment this.

I.e:

Original: d Mirrored: b

Crow 09-19-2009 06:52 PM

Quote:

Originally Posted by fowlplay4 (Post 1523911)
Should add a findimg().mirror property to compliment this.

I.e:

Original: d Mirrored: b

In v6, you can use negative stretch values to mirror images.

DustyPorViva 09-19-2009 07:10 PM

Quote:

Originally Posted by Crow (Post 1523919)
In v6, you can use negative stretch values to mirror images.

Pretty sure it already supports that.

DustyPorViva 09-19-2009 07:15 PM

Quote:

Originally Posted by Crow (Post 1523908)
Yup, of course. But you'd need the polygon for that, quite sure about that.

Nope, it colorizes it(it'll be a very dark blue).

Crow 09-19-2009 08:15 PM

Quote:

Originally Posted by DustyPorViva (Post 1523923)
Nope, it colorizes it(it'll be a very dark blue).

Hm. Guess I only ever tried it with black and thought the image actually adapts to the polygon or something. Well, whatever :p


All times are GMT +2. The time now is 04:10 AM.

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