artofillusion.procedural
Class HLSModule

java.lang.Object
  extended by artofillusion.procedural.Module
      extended by artofillusion.procedural.HLSModule

public class HLSModule
extends Module

This is a Module which takes three numbers, and uses them as the hue, saturation, and value components of a color.


Field Summary
 
Fields inherited from class artofillusion.procedural.Module
linkFrom, linkFromIndex
 
Constructor Summary
HLSModule(java.awt.Point position)
           
 
Method Summary
 void getColor(int which, RGBColor c, double blur)
          Calculate the color.
 void init(PointInfo p)
          New point, so the color will need to be recalculated.
 
Methods inherited from class artofillusion.procedural.Module
calcSize, checkFeedback, draw, duplicate, edit, edit, getAverageValue, getBounds, getClickedPort, getInputIndex, getInputPorts, getName, getOutputIndex, getOutputPorts, getValueError, getValueGradient, inputConnected, layout, readFromStream, setInput, setPosition, writeToStream
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HLSModule

public HLSModule(java.awt.Point position)
Method Detail

init

public void init(PointInfo p)
New point, so the color will need to be recalculated.

Overrides:
init in class Module

getColor

public void getColor(int which,
                     RGBColor c,
                     double blur)
Calculate the color.

Overrides:
getColor in class Module


Copyright © 1999-2011 by Peter Eastman.