🚀 Advanced Web Server Manager
Complete File Manager & Terminal - Standalone Version
By Sid Gifari | Gifari Industries
Current path:
/
/
home2
/
birthday
/
event.krishivgroups.in
/
vendor
/
intervention
/
gif
/
src
/
Decoders
✏️
Editing: ColorTableDecoder.php
<?php declare(strict_types=1); namespace Intervention\Gif\Decoders; use Intervention\Gif\Blocks\Color; use Intervention\Gif\Blocks\ColorTable; use Intervention\Gif\Exceptions\DecoderException; class ColorTableDecoder extends AbstractDecoder { /** * Decode given string to ColorTable * * @throws DecoderException * @return ColorTable */ public function decode(): ColorTable { $table = new ColorTable(); for ($i = 0; $i < ($this->getLength() / 3); $i++) { $table->addColor(Color::decode($this->handle)); } return $table; } }
💾 Save Changes
❌ Cancel