Update the table with a color to show test state.

@param int $x     The X coordinate
@param int $y     The Y coordinate
@param int $color The color to output
976387
public function updateTable($x, $y, $color)
    {
        $this->goToXY($x, $y);
        echo $this->setColor($color)->encode(self::INDICATOR);
        $this->x++;
        $this->goToXY($this->xMax, $this->yMax);
    }
1119350
public function set(int $x, int $y) : void
    {
        $offset = $y * $this->rowSize + ($x >> 5);
        $this->bits[$offset] = $this->bits[$offset] | (1 << ($x & 0x1f));
    }
1228923
public function moveCursorRel($x, $y)
    {
        $yChar = ($y < 0) ? "A" : "B"; // up / down
        $xChar = ($x < 0) ? "D" : "C"; // left / right
        fwrite(STDOUT, "\e[" . abs($x) . $xChar);
        fwrite(STDOUT, "\e[" . abs($y) . $yChar);
    }
476447
public void setHighlightColor(final Color COLOR) {
        if (null == highlightColor) {
            _highlightColor = COLOR;
            fireSectionEvent(UPDATE_EVENT);
        } else {
            highlightColor.set(COLOR);
        }
    }
571834
public void setColor(@ColorInt int color) {
    this.color = color;
    if (!style.isFullyLoaded()) {
      // We are in progress of loading a new style
      return;
    }

    fillExtrusionLayer.setProperties(fillExtrusionColor(color));
  }
674196
public static function output($message, $color = null)
    {
        if (is_string($color)) {
            $message = sprintf($color, $message);
        }

        if (is_null(self::$map)) {
            self::setMap();
        }

        call_user_func(self::$map, $message);
    }
1126779
private function diff($x, $y)
    {
        $exporter = new Exporter();

        $diff = new Diff(
            preg_split('/\R/', $exporter->export($x)),
            preg_split('/\R/', $exporter->export($y))
        );

        return $diff->render(new Diff_Renderer_Text_Unified());
    }
372196
public function addColor($color)
    {
        if ( ! $color instanceof Color ) {
            $color = new Color($color);
        }

        $this->colors []= $color;
    }
196699
public void setLedColor(final Color COLOR) {
        if (null == ledColor) {
            _ledColor = null == COLOR ? Color.RED : COLOR;
            fireUpdateEvent(REDRAW_EVENT);
        } else {
            ledColor.set(COLOR);
        }
    }
105391
function setColor($color, $force = false)
    {
        $new_color = array($color[0], $color[1], $color[2], isset($color[3]) ? $color[3] : null);

        if (!$force && $this->currentColor == $new_color) {
            return;
        }

        if (isset($new_color[3])) {
            $this->currentColor = $new_color;
            $this->addContent(vsprintf("\n%.3F %.3F %.3F %.3F k", $this->currentColor));
        } else {
            if (isset($new_color[2])) {
                $this->currentColor = $new_color;
                $this->addContent(vsprintf("\n%.3F %.3F %.3F rg", $this->currentColor));
            }
        }
    }
9109
public function setColor($color) {

        // if null is passed in, then just leave everything null
        if (!is_null($color)) {

            // if it an instance of another color
            if ($color instanceof ColorInterface) {

                // save the name
                $this->name = $color->getName();

                // save the xterm code
                $this->XTermCode = $color->getXTermCode();

                // save the RGB
                $this->RGB = $color->getRGB();

                // save the ansi code
                $this->ANSICode = $color->getANSICode();

                // if it is string, then it is a color name (maybe)
            } else if (is_string($color)) {

                if (Colors::isValidColorName($color)) {

                    $this->name = Colors::stripName($color);

                    // get the code for that name
                    $this->XTermCode = Colors::getXTermCode($this->name);

                    // save the RGB
                    $this->RGB = Colors::getRGB($this->name);

                    // get the ANSI code
                    $this->ANSICode = Colors::getANSICode($this->name);

                }

                // if it is an integer, then it is likely a xterm code
            } else if (is_int($color)) {

                // if it is between 0 and 255
                if ($color >= 0 && $color <= 255) {

                    // save this code
                    $this->XTermCode = $color;

                    // get the RGB for it
                    $this->name = Colors::getColorIndexForXTermCode($this->XTermCode);

                    // get the RGB
                    $this->RGB = Colors::getRGB($this->name);

                    // get the ANSI Code
                    $this->ANSICode = Colors::getANSICode($this->name);
                }

                // if it is an RGB array
            } else if (is_array($color)) {

                // there must be three items in the array
                if (count($color) === 3) {

                    // save the RGB
                    $this->RGB = $color;

                    // match this RGB to some code
                    $this->name = Colors::matchRGB($this->RGB);

                    // get the nearest ANSI Code
                    $this->ANSICode = Colors::getANSICode($this->name);

                    // get the nearest XTerm code
                    $this->XTermCode = Colors::getXTermCode($this->name);

                }
            }

        // null was passed in
        } else {

            // set the color to be empty
            $this->setEmpty();
        }
    }
1269181
public void setNeedleColor(final Color COLOR) {
        if (null == needleColor) {
            _needleColor = COLOR;
            fireUpdateEvent(REDRAW_EVENT);
        } else {
            needleColor.set(COLOR);
        }
    }
210700
private function fastPixel($image, $x, $y, $color)
    {
        $driver = $this->imageManager->config['driver'];
        if ($driver === 'imagick') {
            $core = $image->getCore();
            $draw = new \ImagickDraw();
            $draw->setFillColor(new \ImagickPixel($color));
            $draw->point($x, $y);
            $core->drawImage($draw);
        } else if ($driver === 'gd') {
            $core = $image->getCore();
            sscanf($color, '#%02x%02x%02x', $red, $green, $blue);
            imagesetpixel($core, $x, $y, imagecolorallocate($core, $red, $green, $blue));
        } else {
            $image->pixel($color, $x, $y);
        }
    }
408791
public void setColor(int color) {
		int x1, y1;
		if(mOrientation) {
			x1 = (mBarLength + mBarPointerHaloRadius);
			y1 = mBarThickness;
		}        else {
			x1 = mBarThickness;
			y1 = (mBarLength + mBarPointerHaloRadius);
		}
		
		Color.colorToHSV(color, mHSVColor);
		shader = new LinearGradient(mBarPointerHaloRadius, 0,
				x1, y1, new int[] {Color.WHITE, color, Color.BLACK}, null,
				Shader.TileMode.CLAMP);
		mBarPaint.setShader(shader);
	    calculateColor(mBarPointerPosition);
		mBarPointerPaint.setColor(mColor);
		if (mPicker != null) {
			mPicker.setNewCenterColor(mColor);
			if(mPicker.hasOpacityBar())
				mPicker.changeOpacityBarColor(mColor);
		}
		invalidate();
	}
84264
public function color($color)
    {
        if ($color !== null) {
            Checkers::checkColor($color, null);
        }
        $this->color = $color;
        return $this;
    }
709377
public void updateColor(TestColor color) {

        switch (color) {
            case green:
                m_forwardButton.setEnabled(true);
                m_confirmCheckbox.setVisible(false);
                m_status.setValue(STATUS_GREEN);
                break;
            case yellow:
                m_forwardButton.setEnabled(false);
                m_confirmCheckbox.setVisible(true);
                m_status.setValue(STATUS_YELLOW);
                break;
            case red:
                m_forwardButton.setEnabled(false);
                m_confirmCheckbox.setVisible(true);
                m_status.setValue(STATUS_RED);
                break;
            default:
                break;
        }
    }
1169202
public void setSecondColor(final Color COLOR) {
        if (null == secondColor) {
            _secondColor = COLOR;
            fireUpdateEvent(REDRAW_EVENT);
        } else {
            secondColor.set(COLOR);
        }
    }