View slot_mask.php
<?php
/*
* (c) 2017/08/21- yoya@awm.jp
* $ composer require meyfa/php-svg
*/
require_once("vendor/autoload.php");
use SVG\SVGImage;
use SVG\Nodes\Structures\SVGStyle;
use SVG\Nodes\Structures\SVGDefs;
View shadow_mask.php
<?php
/*
* (c) 2017/08/20- yoya@awm.jp
* $ composer require meyfa/php-svg
*/
require_once("vendor/autoload.php");
use SVG\SVGImage;
use SVG\Nodes\Structures\SVGStyle;
View aperture_grille.php
<?php
/*
* (c) 2017/08/21- yoya@awm.jp
* $ composer require meyfa/php-svg
*/
require_once("vendor/autoload.php");
use SVG\SVGImage;
use SVG\Nodes\Structures\SVGStyle;
use SVG\Nodes\Structures\SVGDefs;
View delegates.xml
<delegatemap>
+ <delegate decode="heic" command="&quot;heif-convert&quot; &quot;%i&quot; &quot;%o.png&quot; ; /bin/mv &quot;%o.png&quot; &quot;%o&quot;"/>
View circle.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View rygb-grad.php
<?php
$width = 255;
$height = 4;
$im = imagecreatetruecolor($width, $height);
for ($x = 0 ; $x < $width ; $x++) {
$r = imagecolorallocate($im, $x, 0, 0);
View ai_extract.sh
#! /bin/sh
# AI (Adobe Illustrator) BitmapImage & Text Extractor.
# only "PDF compatible":true
# (c) 2017/09/07- yoya@awm.jp
# require)
# % brew install fswatch poppler epstool
# execute) MacOS
# % fswatch -0 ~/QUANT/working | xargs -0 -n 1 sh ./ai_extract.sh
# test)
# % cp -r AIFiles/* ~/QUANT/working/.
View cmyk.sh
convert -size 400x400 xc:white -fill "#0ff" -draw "rectangle 25,125 225,325" c.png
convert -size 400x400 xc:white -fill "#f0f" -draw "rectangle 75,25 275,225" m.png
convert -size 400x400 xc:white -fill "#ff0" -draw "rectangle 175,75 375,275" y.png
convert -size 400x400 xc:white -fill "#888" -draw "rectangle 127,175 320,375" k.png
composite c.png -compose multiply m.png cm.png
composite cm.png -compose multiply y.png cmy.png
composite cmy.png -compose multiply k.png cmyk.png
View getMetImages.php
<?php
/*
* Metropolitan Museum of Art Public Images Downloader
* (c) 2017/02/17(Fri) yoya@awm.jp
* Usage) php getMetImages.php MetObjects.csv
*/
$file = new SplFileObject($argv[1]);
$file->setFlags(SplFileObject::READ_CSV | SplFileObject::READ_AHEAD | SplFileObject::SKIP_EMPTY | SplFileObject::DROP_NEW_LINE);
$idx = 0;
View cmy.sh
convert -size 200x200 xc:white -fill "#0ff" -draw "rectangle 50,30 150,130" c.png
convert -size 200x200 xc:white -fill "#f0f" -draw "rectangle 20,70 120,170" m.png
convert -size 200x200 xc:white -fill "#ff0" -draw "rectangle 80,70 180,170" y.png
composite c.png -compose multiply m.png cm.png
composite cm.png -compose multiply y.png cmy.png