Draw a cuboid: Difference between revisions
→{{header|PARI/GP}}
m (Frink) |
|||
Line 1,987:
<lang openscad>// This will produce a simple cuboid
cube([2,3,4]);
</lang>
=={{header|OxygenBasic}}==
Using an OpenGl-based console
<lang>
% Title "Cuboid 2x3x4"
'% Animated
% PlaceCentral
uses ConsoleG
sub main
========
cls 0.0, 0.2, 0.7
shading
scale 3
pushstate
GoldMaterial.act
static float ang=45
rotateX ang
rotateY ang
scale 2,3,4
go cube
popstate
end sub
EndScript
</lang>
|