Jump to content

Draw a cuboid: Difference between revisions

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>
 
54

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.