Location: PHPKode > projects > Rainbow Trading > rgbtrade/includes/rgbValue.php
<?php
  class rgbValue {
    var $redValue;
    var $greenValue;
    var $blueValue;

    function rgbValue() {
      $this->redValue   = new rgbDimension;
      $this->greenValue = new rgbDimension;
      $this->blueValue  = new rgbDimension;
    }

 function setRedValue($value) {
   $this->redValue->setValue($value);
 }
 function setGreenValue($value) {
   $this->greenValue->setValue($value);
 }
 function setBlueValue($value) {
   $this->blueValue->setValue($value);
 }
 function getRedValue() {
   return (float)$this->redValue->getValue();
 }
 function getGreenValue() {
   return (float)$this->greenValue->getValue();
 }
 function getBlueValue() {
   return (float)$this->blueValue->getValue();
 }


 function getRedRoundedValue() {
   return $this->redValue->getRoundedValue();
 }
 function getRedFraction() {
   $fraction = $this->redValue->getFraction();
   return (float) $fraction;
 }
 function getRed8th() {
   return (string)  $this->redValue->get8th();
 }



 function getGreenRoundedValue() {
   return $this->greenValue-> getRoundedValue();
 }

 function getGreenFraction() {
   return  $this->greenValue->getFraction(); 
 }
 function getGreen8th() {
   return $this->greenValue-> get8th();
 }



 function getBlueRoundedValue() {
   return $this->blueValue->getRoundedValue();
 }
 function getBlueFraction() {
   return $this->blueValue->getFraction(); 
 }
 function getBlue8th() {
   return $this->blueValue->get8th();
 }
}

?>
Return current item: Rainbow Trading