思った感じになりません。
balls の代わりにplanarカーブを直接入れてみましたがエラーが出ます。
ファンクションにしてみたところ、forループので作った数値が反映されていません。
ファンクションのインスタンス?を出力していないと思い上記のようにしましたがエラーが出てしまいます。
以上の事から自分の認識が正しいのかよくわからなくなりました・・・
python自体の深いところをわかっているわけではないので余計こんがらがりました。
そこで、for b in ballsはどのような条件または使い方であれば使えるのでしょうか?
そして、上記のように別のオブジェクトに対しての使い方はどのようにすればできるのでしょうか?
2:同じファンクション内のdist = rs.Distance(self.pos,b.pos)についてですが
この文章も for b in balls によってbはBallのインスタンスであると定義?されたためb.posがbの位置であると分かるのでしょうか?
pythonは定義しなくても動いてしまうのでどのような時に使えるのか文章見ただけではよくわかりません・・・
大変細かいことかもしれませんが、よりpythonをしっかりと理解するためにも、どなたかわかる方ご教授いただけると幸いです。…
ch and every pixel. We call these types of images ARGB, for AlphaRedGreenBlue.
PNGs are capable of storing 256 different levels of transparency per pixel, just as it can store 256 different levels of green per pixel. You just need to make sure that you export PNGs with this alpha channel intact.
* This is not the whole story though, images can be paletted, they can be greyscale or defined in some colour space other than RGB.
** Again, this is not the whole story. Transparency is sometimes defined as a specific colour (most often pure magenta), or sometimes it's stored as a single bit mask.
--
David Rutten
david@mcneel.com
Poprad, Slovakia…
Added by David Rutten at 9:43am on December 12, 2011