Gradients,Wipes,Fades

Non-platform specific questions.

Gradients,Wipes,Fades

Postby Just4Fun » Mon Jul 19, 2004 5:16 am

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
I've learned that I still have a lot to learn.

** Makslane == Genious **
Just4Fun
 
Posts: 524
Joined: Tue Jul 01, 2003 5:19 am
Location: USA: Washington State; West Coast
Score: 6 Give a positive score

Postby jazz_e_bob » Mon Jul 19, 2004 5:23 am

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...
Controlling complexity is the essence of computer programming.
User avatar
jazz_e_bob
 
Posts: 742
Joined: Tue Jul 01, 2003 9:38 pm
Location: Bloke from Cockatoo Creek Australia
Score: 14 Give a positive score

Postby Just4Fun » Mon Jul 19, 2004 3:46 pm

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:
I've learned that I still have a lot to learn.

** Makslane == Genious **
Just4Fun
 
Posts: 524
Joined: Tue Jul 01, 2003 5:19 am
Location: USA: Washington State; West Coast
Score: 6 Give a positive score

Postby phractus » Wed Jul 21, 2004 9:59 pm

can we do pixle work in GE?
phractus
 
Posts: 77
Joined: Mon Mar 08, 2004 1:25 am
Location: Rochester, NY, USA
Score: 0 Give a positive score

Postby Just4Fun » Thu Jul 22, 2004 4:57 am

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
I've learned that I still have a lot to learn.

** Makslane == Genious **
Just4Fun
 
Posts: 524
Joined: Tue Jul 01, 2003 5:19 am
Location: USA: Washington State; West Coast
Score: 6 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest