最新リリース情報

Loc (beta-005)2009-05-05 20:33
l4P5 (beta-003)2009-05-05 20:38
wrj4p5 (alpha-011)2009-05-05 20:41

最近の更新

2012-01-01
2010-03-25
2009-12-26
2009-05-06
2009-04-12
2009-03-02
2008-12-20
2008-08-08

Wikiガイド

サイドバー

class l4p5

static utilities collection, drawing the Loc objects to P5's sketch

coded by Classiclll on 08/07/20

test applet and codes are here

  1. [initial setting, always needed]
  2. static void setup(PApplet parent)
  3. [Processing's primitives]
  4. static void translate(Loc l)
  5. static void translate(Rod r)
  6. static void translate(Tag t)
  7. static void translate(Ship t)
  8. static void line2D(Loc s, Loc t)
  9. static void line2D(Rod r)
  10. static void line(Loc s, Loc t)
  11. static void line(Rod r)
  12. static void vertex(Loc l)
  13. static void vertex(Loc l, float u, float v)
  14. static void vertex2D(Loc l)
  15. static void vertex2D(Loc l, float u, float v)
  16. static void bezierVertex(Loc l, Loc m, float x, float y, float z)
  17. static void bezierVertex2D(Loc l, Loc m, float x, float y)
  18. static void ellipse(Loc l, float width, float height)
  19. static void ellipse(Rod r)
  20. static void ellipse(Tag t)
  21. static void rect(Loc l, float width, float height)
  22. static void rect(Rod r)
  23. static void rect(Tag t)
  24. static void point(Loc l)
  25. static void point2D(Loc l)
  26. static void box(Loc l, float width, float height, float depth)
  27. static void box(Rod r)
  28. static void box(Ship s)
  29. static void sphere(Loc l, float radius)
  30. static void sphere(Rod r)
  31. [Extended stufs]
  32. static void polygon(Loc[] at)
  33. static void polygon(Loc[] at, PImage img)
  34. [Texture Mapped 3D Primitives. coded by Classiclll on 5/1/2006]
  35. "dim" is the degree of detail of each shapes (positive odd number)
  36. [Capsules]
  37. static void tmdSphere(float radius, PImage img)
  38. static void tmdOctahedron(float radius, PImage img)
  39. static void tmdBarrel(float radius, PImage img)
  40. static void tmdCapsule(int dim, float radius, PImage img)
  41. [Tubes]
  42. static void tmdBox(float len, PImage img)
  43. static void tmdHexapole(float radius, float len, PImage img)
  44. static void tmdTube(int dim, float radius, float len, PImage img)
  45. [Cones]
  46. static void tmdTetra(float len, PImage img)
  47. static void tmdCone(float radius, float len, PImage img)
  48. static void tmdCone(int dim, float radius, float len, PImage img)
  49. [Torus]
  50. // To Do