2014-06-16から1日間の記事一覧
面に Texture で文字を書く。 vtc = {{0, 0}, {1, 0}, {1, 1}, {0, 1}};(*VertexTextureCoordinates*); (* front *) front = {{0, 0, 0}, {1, 0, 0}, {1, 0, 1}, {0, 0, 1}}; ffc = # + {0, 0, 0} & /@ front; fF = {Texture[ Graphics[{Red, Text[Style["F"…
小キューブに 文字をText で書き込む。 L, B, D の文字が透けて見える。 (* front *) front = {{0, 0, 0}, {1, 0, 0}, {1, 0, 1}, {0, 0, 1}}; ffc = # + {0, 0, 0} & /@ front; textF = {Red, Text[Style["F", 18, Bold, FontFamily -> "Courier"], Plus @@…
Graphics3D と Polygon を使って Cube の試作してみた。色の使い方が 2D とは勝手が違うことを実感した。 (* fornt *) front = {{0, 0, 0}, {1, 0, 0}, {1, 0, 1}, {0, 0, 1}}; ffc = # + {0, 0, 0} & /@ front; fF = {Glow[Green], Green, Polygon[ffc]}; (…