Skip to content

It is a very simple Android app that show the daltonism of the Android framework.

License

Notifications You must be signed in to change notification settings

xabiamu/Daltonic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Daltonic

It is a very simple Android app that show the daltonism of the Android framework.

Code

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		
		Bitmap bmp = Bitmap.createBitmap(100, 100, Config.ARGB_8888);

		IntBuffer buffer = IntBuffer.allocate(bmp.getWidth() * bmp.getHeight());
	    buffer.rewind();
	    
	    while ( buffer.position() < buffer.limit() ) {
	    	buffer.put( Color.BLUE );
	    }
	    
	    buffer.rewind();
	    bmp.copyPixelsFromBuffer(buffer);
	    
	    ImageView view = new ImageView(this);
	    view.setImageBitmap(bmp);
	    
	    setContentView(view);
	}

Capture

About

It is a very simple Android app that show the daltonism of the Android framework.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages