Khan Academy or Scratch Wikia
Advertisement

P3D is a 3D graphics library in Processing JavaScript and Khan Academy's Processing JavaScript environment. When the line of code var x = createGraphics(width, height, P3D); is called, this enables P3D to be used. x is the name of the image. Users can then make the code for their image (users can learn more about the P3D syntax on Lionofgd's Guide to P3D and then insert the line of code image(x, 0, 0, 400, 400).

Advertisement