summaryrefslogtreecommitdiff
path: root/web/ColorResult.php
diff options
context:
space:
mode:
authornavewindre <boneyaard@gmail.com>2025-11-11 08:11:24 +0100
committernavewindre <boneyaard@gmail.com>2025-11-11 08:11:24 +0100
commitf5e29189f70c5c8532916504a1a22f8c586f6e73 (patch)
tree9bf42144e608260527766e128268b380231ed95b /web/ColorResult.php
parent6442494822d12c23cdd609031c4039d3309b64f6 (diff)
new web
Diffstat (limited to 'web/ColorResult.php')
-rw-r--r--web/ColorResult.php20
1 files changed, 0 insertions, 20 deletions
diff --git a/web/ColorResult.php b/web/ColorResult.php
deleted file mode 100644
index 549bda0..0000000
--- a/web/ColorResult.php
+++ /dev/null
@@ -1,20 +0,0 @@
-<?php
-/**
- * Transforms an ascii result to a colored HTML representation. Each
- * color value is represented by a single char, but HTML-styled to
- * display the correct color.
- *
- * (c) 2016 Alex Schenkel
- */
-namespace Img2Ascii;
-
-class ColorResult extends Result {
- public $blockChar = '#'; // can also be an HTML entity, e.g. &#x2588;
-
- protected function transformValue($value) {
- $r = floor($value[0]);
- $g = floor($value[1]);
- $b = floor($value[2]);
- return "<span style='color:rgb({$r},{$g},{$b})'>{$this->blockChar}</span>";
- }
-}