l4P5 (beta-003) | 2009-05-05 20:38 |
Loc (beta-005) | 2009-05-05 20:33 |
wrj4p5 (alpha-011) | 2009-05-05 20:41 |
static utilities collection, drawing the Loc objects to P5's sketch
test applet and codes are here
- [initial setting, always needed]
- static void setup(PApplet parent)
- [Processing's primitives]
- static void translate(Loc l)
- static void translate(Rod r)
- static void translate(Tag t)
- static void translate(Ship t)
- static void line2D(Loc s, Loc t)
- static void line2D(Rod r)
- static void line(Loc s, Loc t)
- static void line(Rod r)
- static void vertex(Loc l)
- static void vertex(Loc l, float u, float v)
- static void vertex2D(Loc l)
- static void vertex2D(Loc l, float u, float v)
- static void bezierVertex(Loc l, Loc m, float x, float y, float z)
- static void bezierVertex2D(Loc l, Loc m, float x, float y)
- static void ellipse(Loc l, float width, float height)
- static void ellipse(Rod r)
- static void ellipse(Tag t)
- static void rect(Loc l, float width, float height)
- static void rect(Rod r)
- static void rect(Tag t)
- static void point(Loc l)
- static void point2D(Loc l)
- static void box(Loc l, float width, float height, float depth)
- static void box(Rod r)
- static void box(Ship s)
- static void sphere(Loc l, float radius)
- static void sphere(Rod r)
- [Extended stufs]
- static void polygon(Loc[] at)
- static void polygon(Loc[] at, PImage img)
- [Texture Mapped 3D Primitives. coded by Classiclll on 5/1/2006]
- "dim" is the degree of detail of each shapes (positive odd number)
- [Capsules]
- static void tmdSphere(float radius, PImage img)
- static void tmdOctahedron(float radius, PImage img)
- static void tmdBarrel(float radius, PImage img)
- static void tmdCapsule(int dim, float radius, PImage img)
- [Tubes]
- static void tmdBox(float len, PImage img)
- static void tmdHexapole(float radius, float len, PImage img)
- static void tmdTube(int dim, float radius, float len, PImage img)
- [Cones]
- static void tmdTetra(float len, PImage img)
- static void tmdCone(float radius, float len, PImage img)
- static void tmdCone(int dim, float radius, float len, PImage img)
- [Torus]
- // To Do
[ページ情報]
更新日時: 2008-08-08 12:28:13, 更新者: classiclll
[ライセンス]
クリエイティブ・コモンズ 2.1 表示-継承
[権限]
表示:無制限, 編集:ログインユーザ, 削除/設定:メンバー