Skip to content

Instantly share code, notes, and snippets.

@mieki256
mieki256 / 1BitGrayscale.gpl
Last active August 29, 2015 14:16
GIMPでARGB4444に画像を変換するスクリプト。http://registry.gimp.org/taxonomy/term/1275 を改造。
GIMP Palette
Name: 1-Bit Grayscale
Columns: 16
#
0 0 0
255 255 255
@mieki256
mieki256 / Main.hx
Created March 30, 2015 13:21
GIMP1.xのRGB交換相当っぽい感じのアニメをするHaxe+OpenFLソース
package;
import openfl.*;
import openfl.display.*;
import openfl.events.*;
/**
* Animation like GIMP 1.x RGB displace
* @author mieki256
*/
@mieki256
mieki256 / loremipsum.l
Last active August 29, 2015 14:19
xyzzyでLorem ipsum(ダミーテキスト)を挿入
;; -*-lisp-*-
;; Last updated: <2015/04/12 07:39:04 +0900>
;;
;; # Lorem-ipsum - xyzzy
;;
;; lorem-ipsum.el を移植。
;; http://www.emacswiki.org/emacs/lorem-ipsum.el
;;
;; ## インストール
;;
@mieki256
mieki256 / m256_buildingtexturemaker.py
Last active August 29, 2015 14:22
Python 2.7.9 + Tkinter + Pillow 2.8.1 で夜景のビルのテクスチャっぽい画像を生成するスクリプト
#!/usr/bin/env python
# -*- mode: python; Encoding: utf-8; coding: utf-8 -*-
# Last updated: <2015/06/02 20:20:33 +0900>
"""
m256 building texture maker
by mieki256
License: CC0
@mieki256
mieki256 / Multiple Layer Actions Fork HSC.scm
Last active August 29, 2015 14:28
GIMPの全レイヤー・複数レイヤーに対して一括で色調補正もしくはコントラスト変更を行うScript-fu。Multiple Layer Actions ( http://gimpscripts.com/2014/01/multiple-layer-actions/ ) を参考に記述。
; Multiple Layer Actions fork HSC rel 1.0
; Created by mieki256
;
; Original scripts : Multiple Layer Actions rel 5.1 Created by Graechan
; Comments directed to http://gimpchat.com or http://gimpscripts.com
;
; License: GPLv3
; This program is free software: you can redistribute it and/or modify
; it under the terms of the GNU General Public License as published by
; the Free Software Foundation, either version 3 of the License, or
@mieki256
mieki256 / qt_fontdialog_json.py
Created October 3, 2012 03:47
Pythonでjsonファイルを読み書き
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# -*- mode: python;Encoding: utf8n -*-
"""
PyQt + FontDialog + json のテスト
ラベルのフォントを、
フォント選択ダイアログで選択したフォントに変更して、
フォント種類をjsonファイルに記録する。
@mieki256
mieki256 / qt_fontdialog_ini.py
Created October 3, 2012 03:46
Pythonでiniファイルの読み書き
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# -*- mode: python;Encoding: utf8n -*-
"""
PyQt + FontDialog + ConfigParser(iniファイルアクセス)のテスト
ラベルのフォントを、
フォント選択ダイアログで選択したフォントに変更して、
フォント種類をiniファイルに記録する。
@mieki256
mieki256 / fakeantijaggies.py
Created November 7, 2015 10:07
fake anti jaggies - アンチジャギの実験
#!/usr/bin/env python
# -*- mode: python; Encoding: utf-8; coding: utf-8 -*-
# Last updated: <2015/11/07 17:23:31 +0900>
"""
fakeantijaggies
anti jaggies test
usage: python fakeantijaggies.py -i INPUT.png -o OUT.png -c 1
@mieki256
mieki256 / fakeantijaggies2.py
Created November 10, 2015 11:34
fakeantijaggies2.py - アンチジャギのテスト
#!/usr/bin/env python
# -*- mode: python; Encoding: utf-8; coding: utf-8 -*-
# Last updated: <2015/11/10 02:24:47 +0900>
"""
fakeantijaggies2
アンチジャギ、ジャギ消しの実験。
layman, lrevise.c を移植。
たぶん移植時に失敗して動作がバグってる予感。
@mieki256
mieki256 / scanlineseedfill.rb
Created December 24, 2015 00:54
スキャンラインシードフィルによる塗り潰しの実験
#!ruby -Ks
# -*- mode: ruby; coding: sjis -*-
# Last updated: <2015/12/24 09:52:37 +0900>
#
# 塗り潰しアルゴリズム(Scanline Seed Fill Algorithm)の実験
# 画像の中をクリックすれば塗りつぶしができる。
# 画像の中をクリックすれば塗りつぶしできるはず。
#
# usage: ruby scanlineseedfill2.rb TEST.PNG
#