/** * Draw a pixel * * @param $color Pixel color * @param $p */ function point($color, $p) { if ($p->isHidden() === FALSE) { list($red, $green, $blue, $alpha) = $this->getColor($color); $point = new SWFShape(); $point->setLine(1, $red, $green, $blue, $alpha); $point->movePenTo($this->x + round($p->x), $this->y + round($p->y)); $point->drawLine(0.5, 0.5); $point->movePen(-0.5, 0); $point->drawLine(0.5, -0.5); $this->movie->add($point); } }