2005-04-01から1日間の記事一覧

particle習作(pygame)

proce55ingで作ろうとしましたが、画像のアルファがうまく出来なかったので、pygameで # -*- coding:sjis -*- # http://sansa.s16.xrea.com/text/pygame_sample.html # http://mail.unixuser.org/~euske/doc/pygame/ChimpLineByLine-j.html import pygame, s…

colladaのフォーマットについて

polygonsタグに頂点やnormalがまとめて入っている <polygons count="5" material="#Blue"> <input semantic="VERTEX" source="#box-Vtx" idx="0"/> <input semantic="NORMAL" source="#box-0-Normal" idx="1"/> <p>0 0 1 1 5 2 4 3</p>この場合、頂点インデクス1 normalインデクス1 頂点インデクス2 normalインデクス2 ... となる inputタグのsource属性がarrayタグと関連づいている。</polygons>

pythonMagickテスト

from PythonMagick import * img=Image('30x30','red') img.write('test1.png') data=file('test1.png','rb').read() img=Image(Blob(data)) img.write('test2.png') print "now you should have two png files"

http://public.procoders.net/cgi-bin/trac.cgi/wiki/PythonMagick http://ftp.surfnet.nl/pub/ImageMagick/python/README.txt