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.
/** * Palette.java/*w w w.j a v a 2s.c o m*/ * Author: marek.brodziak@gmail.com * Created: May 6, 2014 * Copyright 2014 by miniti */ package pl.miniti.android.pleasures.palette; /** * Common interface for the palette providers */ public interface Palette { /** * Gets the background color * * @return background color */ int background(); /** * Gets color of a given line * * @param line * line number * @param of * number of lines * @return line color */ int of(int line, int of); /** * Called before rendering a new animation frame */ void frame(); /** * Enables or disables dimming * * @param dim * if true dimming is enabled */ void setDimmed(boolean dim); }