processingBasic shapes and functions using P3D


Syntax

  • translate(float x, float y, float z)
  • rotateX(float angle)
  • rotateY(float angle)
  • rotateZ(float angle)
  • box(float size)
  • box(float w, float h, float d)

Parameters

ParametersDetails
anglethe angle is in radians
sizethe dimension of the box to be used for all its dimensions
wthe dimension of the box in the x-axis
hthe dimension of the box in the y-axis
dthe dimension of the box in the z-axis