All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ctreber.acearth.shader.ShaderFlat Maven / Gradle / Ivy

Go to download

PlantUML is a component that allows to quickly write : * sequence diagram, * use case diagram, * class diagram, * activity diagram, * component diagram, * state diagram * object diagram

The newest version!
package com.ctreber.acearth.shader;

import java.awt.Color;

/**
 * 

Flat shader (does not care for Projection).

* *

© 2002 Christian Treber, [email protected] (Nov 11, 2002)

* @author Christian Treber, [email protected] * */ 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; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy