Back to project page unknown-pleasures.
The source code is released under:
Creative Commons Attribution NonCommercial NoDerivs (CC-NC-ND) THE WORK (AS DEFINED BELOW) IS PROVIDED UNDER THE TERMS OF THIS CREATIVE COMMONS PUBLIC LICENSE ("CCPL" OR "LICENSE"). THE WORK IS PROTE...
If you think the Android project unknown-pleasures listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
/** * BlackPalette.java/*from w w w .jav a2s . c o m*/ * Author: marek.brodziak@gmail.com * Created: May 21, 2014 * Copyright 2014 by miniti */ package pl.miniti.android.pleasures.palette; import android.graphics.Color; /** * Plain black palette on white background */ public class BlackPalette extends DimSupport { /* * (non-Javadoc) * * @see pl.miniti.android.pleasures.palette.Palette#background() */ @Override public int background() { return Color.WHITE; } /* * (non-Javadoc) * * @see pl.miniti.android.pleasures.palette.DimSupport#rgb(int, int) */ @Override protected int rgb(int line, int of) { return Color.BLACK; } /* * (non-Javadoc) * * @see pl.miniti.android.pleasures.palette.Palette#frame() */ @Override public void frame() { // do nothing } }