Task

Draw a   cuboid   with relative dimensions of    2 × 3 × 4. 



The cuboid can be represented graphically, or in   ASCII art,   depending on the language capabilities.

To fulfill the criteria of being a cuboid, three faces must be visible.

Either static or rotational projection is acceptable for this task.



Related tasks
 draw a sphere
 draw a rotating cube
 write language name in 3D ASCII
 draw a Deathstar


3 elements d h w
 
: spaces  ( n- )  &space times ;
: ---     ( -  )  '+ putc @w 2 * [ '- putc ] times '+ putc ;
: ?       ( n- )  @h <> [ '| ] [ '+ ] if ;
: slice   ( n- )  '/ putc @w 2 * spaces '/ putc @d swap - dup spaces ? putc cr ;
: |...|/  ( -  )  @h [ '| putc @w 2 * spaces '| putc 1- spaces '/ putc cr ] iterd ;  
: face    ( -  )
   ---    @w 1+ spaces '/ putc cr
  |...|/
   ---    cr ;
 
: cuboid  ( whd- )
  !d !h !w cr
  @d 1+ spaces --- cr
  @d [ dup spaces slice ] iterd
  face ;
 
2 3 4 cuboid