Box - Draws a cuboid/rectangular prism
Last updated 2 years ago
box([width], [height], [depth], [detailX], [detailY])
width
length of the box in the x-direction
height
length of the box in the y-direction
depth
length of the box in the z-direction
def setup(): createCanvas(300,300, WEBGL) def draw(): background(255, 79, 132) orbitControl() stroke(176, 235, 51) fill(112, 88, 255) strokeWeight(2) r = frameCount rotateX(r) rotateY(-r) rotateZ(r) box(150, 100, 50)
draws a box of a specified width, height, and depth.
Find these documents helpful? Let the people who made them help your child learn to code at !
We'd love to hear your Feedback/Comments .