Skip to content

Instantly share code, notes, and snippets.

@robopuff
robopuff / paint.go
Last active December 12, 2018 10:06
Paint image in terminal
package main
import (
"flag"
"fmt"
"image"
"image/color"
_ "image/gif"
_ "image/jpeg"
_ "image/png"

Keybase proof

I hereby claim:

  • I am robopuff on github.
  • I am robopuff (https://keybase.io/robopuff) on keybase.
  • I have a public key whose fingerprint is 191D A92D CA65 78D9 237D 7BFF 4783 BCC1 2534 8A54

To claim this, I am signing this object:

@robopuff
robopuff / paint
Last active October 9, 2024 09:09
Draw image in terminal (True Color) with PHP
#!/usr/bin/env php
<?php
define('VERSION', '1.0.24');
define('DEFAULT_PIXEL', "\xE2\x96\x84");
define('RC', "\e[0m");
define('RCNL', RC . PHP_EOL);
define('CURRENT_FILE', array_shift($argv));
error_reporting(0);