How to draw gradients with J2ME

Gradients are a nice graphic element to be used within your game or application. But, wouldn’t it be great if you could use all the gradients you want, without using images?

And here is the Saturday Tutorial :)

Draw gradients with J2me

The gradients shown in the screenshot above are generated by the following straightforward method:

Gradient.gradientBox(Graphics g, 
	int color1, int color2, 
	int left, int top, 
	int width, int height, 
	int orientation)

For the full source code you can see the J2me Gradient tutorial on Forum Nokia Wiki

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • bodytext
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • BlinkList
  • Furl
  • Ma.gnolia
  • MisterWong
  • NewsVine
  • Reddit
  • StumbleUpon
  • Technorati

Tags: , ,

One Response to “How to draw gradients with J2ME”

  1. AJAX coding school » Blog Archive » AJAX Code [2008-04-12 10:23:53] Says:

    [...] How to draw gradients with J2ME By pit Gradient.gradientBox(Graphics g, int color1, int color2, int left, int top, int width, int height, int orientation). For the full source code you can see the J2me Gradient tutorial on Forum Nokia Wiki. Jappit on Ajax, Mobile, and so on. - http://www.jappit.com/blog [...]

Leave a Reply