Skip to content

achellies/AndEngine-Hexadecimal-Background-Wrapper

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

AndEngine - Hexadecimal Background Wrapper

Find it difficult to use OpenGL color values in AndEngine?
This Wrapper will let you use Hexadecimal color values to render simple backgrounds.

##Usage

  • Instead of Background class of AndEngine use HexBackground class to render background with hexadecimal color.
  • Make sure you pass exactly 6 character string to HexBackground constructor.
  • Do not use any special characters like "#".
  • Invalid input will result in white background.
public class SplashScene extends Scene{

	public SplashScene() {
		setBackground(new HexBackground("028482"));
	}
  
}

Coming Soon

  • Simple Gradient Backgrounds for AndEngine Scenes.

Other Wrappers

About

Background Color of Scene using Hex value.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published