package ext.plantuml.com.ctreber.acearth.shader;

import java.awt.Color;

/**
 * 

Flat shader (does not care for Projection).

* *

© 2002 Christian Treber, ct@ctreber.com (Nov 11, 2002)

* @author Christian Treber, ct@ctreber.com * */ public class ShaderFlat extends Shader { public Color[] getShadedColors(int pRowNo, int[] pRowTypes) { final Color[] lColors = new Color[pRowTypes.length]; for(int i = 0; i < pRowTypes.length; i++) { lColors[i] = getShadedColorForType(pRowTypes[i], 1.0); } return lColors; } }

Ads help maintain this website.