diff --git a/src/Geometry/Pixel.php b/src/Geometry/Pixel.php new file mode 100644 index 00000000..e1672fdd --- /dev/null +++ b/src/Geometry/Pixel.php @@ -0,0 +1,28 @@ +background = $background; + + return $this; + } + + public function background(): ColorInterface + { + return $this->background; + } +} diff --git a/tests/Geometry/PixelTest.php b/tests/Geometry/PixelTest.php new file mode 100644 index 00000000..6719682a --- /dev/null +++ b/tests/Geometry/PixelTest.php @@ -0,0 +1,23 @@ +withBackground($color); + $this->assertInstanceOf(ColorInterface::class, $pixel->background()); + $this->assertInstanceOf(Pixel::class, $result); + } +}