Page 1 of 1

Gradients,Wipes,Fades

PostPosted: Mon Jul 19, 2004 5:16 am
by Just4Fun
Does anyone know of any place to find C source sample code that could be used with GE that would show how to accomplish:

1. A color gradient
2, A Fade
3. A Wipe

TIA

PostPosted: Mon Jul 19, 2004 5:23 am
by jazz_e_bob
The fade can be done with transparency.

Colour gradient, um, just a bitmap? You could use a wide flat bitmap with iinfinite Y for example.

Wipe. Hmmm Slide one image onto the other. Not really a wipe but close...

PostPosted: Mon Jul 19, 2004 3:46 pm
by Just4Fun
Hmm Jazz,
The slide solution--> I hadn't thought about your solution to that--"Kool". I've used the other two solutions you mention for creating Gradients and Fades (thanks to your Match demo).

It's just that I would be curious to see some real 'C' code that does this. I'm always curious and it would be fun to "play" with as I learn the scripting.

Thanks again.... :wink:

PostPosted: Wed Jul 21, 2004 9:59 pm
by phractus
can we do pixle work in GE?

PostPosted: Thu Jul 22, 2004 4:57 am
by Just4Fun
Yes. Makslane added pixel support in GE 1.2.

From the support docs:
void putpixel(int x, int y)
//Draw a single pixel on Event Actor in (x, y) coordinates using actual pen