img { -ms-interpolation-mode: nearest-neighbor; image-rendering: -webkit-crisp-edges; image-rendering: -moz-crisp-edges; image-rendering: pixelated; vertical-align: text-bottom; }
if(navigator.userAgent.indexOf(\"Edge\")>0) $(window).load(function(w,h,c,x,y) {w=\"width\";h=\"height\"; $(\"img\") .map(function(v,d){c=$(\"<canvas>\") [0];x=c[w]=d[w];y=c[h]=d[h]; v=c.getContext(\"2d\"); v.msImageSmoothingEnabled=0; v.drawImage(d,0,0,x,y);$(c).replaceAll(d)})})
以上の方法は魔法使いの森さんの「WEB上でドット絵を拡大表示する」より抜粋させていただいております。 詳しくはリンク先を参照ください。
CSS上で拡大するので基本的にbackground-sizeが動作する環境を前提とします。対応ブラウザ一覧#hogehoge{ background-image: url(hogehoge.gif); -moz-background-size:100% auto; background-size:100% auto; -ms-interpolation-mode: nearest-neighbor; image-rendering: -webkit-crisp-edges; image-rendering: -moz-crisp-edges; image-rendering: pixelated; }
width: 85px; height: 80px; -moz-background-size:100%; background-size:100%;
width: 85px; height: 80px; -moz-background-size:85px 80px; background-size:85px 80px;
※その他詳細のブラウザは細かく検証できていません。
カラーパレットは魔法使いの森さんの「ファミコンの画面について」より抜粋させていただいております。
詳しくはリンク先を参照ください。
ドット絵の大きさはファミコンの仕様に準拠していません。
ファミコンの詳しい仕様は「ファミリーコンピュータ Wikipedia」をご確認ください。
アイロンビーズは色々種類があるようなのですが、今回作成したカラーパレットはパーラービーズ(ソリッド色のみ)の色見本です。単色ビーズ|パーラービーズ