Structured Graphics Programs
Structured Graphics Programs
<head>
</head>
<body>
classid = "CLSID:369303C2-D7AC-11d0-89D5-00A0C90833E6">
<param name = "Line0005"; value = "Oval( 0, -175, 25, 50, 45 )" />
<param name = "Line0006"; value = "Arc( -200, -125, 100, 100, 45, 135, 0 )" />
<param name = "Line0007"; value = "Pie( 100, -100, 150, 150, 90, 120, 0 )" />
<param name = "Line0008"; value = "Polygon(5, 0, 0, 10, 20, 0, -30,-10, -10, -10, 25)" />
<param name = "Line0009"; value = "Rect( -185, 0, 60, 30, 25 )" />
<param name = "Line0010"; value = "RoundRect( 200, 100, 35, 60, 10, 10, 25 )" />
<param name = "Line0011"; value = "SetFont( 'Arial', 65, 400, 0, 0, 0 )" />
<param name = "Line0012"; value = "Text( 'Shapes', -200, 200 , -35 )" />
<param name = "Line0014"; value = "PolyLine( 5, 100, 0, 120, 175, -150, -50,-75, -75, 75, -75)"
/>
<head>
<title>Structured Graphics -
Translate</title>
var x = 15;
var y = 15;
var leftRight = 1;
function start()
window.setInterval( "run()", 50 );
function run()
if ( y == -100 || y == 50 )
upDown *= -1;
if ( x == -150 || x == 100 )
leftRight *= -1;
y += upDown * 5;
x += leftRight * 5;
</script>
</head>
<object id = "ball" style = "background-color: ffffff; width: 300; height: 200; border-style:
groove; position: absolute;" classid = "CLSID:369303C2-D7AC-11d0-89D5-00A0C90833E6">
<param name = "Line0003"; value = "Oval( 15, 15, 50, 50 )" />
<head>
var speed = 5;
function start() {
function run() {
counter += speed;
speed *= ( 5 / 4 );
speed /= ( 5 / 4 );
</script> </head>
<param name = "Line0003"; value = "Pie( -75, -75, 150, 150, 90, 120, 300 )" />
<param name = "Line0005"; value = "Pie( -75, -75, 150, 150, 90, 120, 180 )" />
<param name = "Line0007"; value = "Pie( -75, -75, 150, 150, 90, 120, 60 )" />
<head>
ball.SourceURL = "newoval.txt";
</script>
var x = 20;
var y = 20;
var leftRight = 1;
function start() {
window.setInterval( "run()", 50 );
function run() {
if ( y == -100 || y == 50 )
upDown *= -1;
if ( x == -150 || x == 100 )
leftRight *= -1;
y += upDown * 5;
x += leftRight *5;
</script>
</head>
<object id = "ball" style = "width: 300; height: 200; border-style: groove; position: absolute;
top: 10; left: 10;" classid = "clsid:369303C2-D7AC-11d0-89D5-00A0C90833E6">
<param name = "Line0003"; value = "Oval( 20, 20, 50, 50 )" />
<param name = "MouseEventsEnabled" value = "1" />
</object>
</body>
</html>
<html>
<head>
var speedX = 0;
var speedY = 0;
var speedZ = 0;
var scale = 1;
function start() {
function run() {
axis = ( axis ? 0 : 5 );
</script>
</head>
<input type = "button" value = "Rotate-X" onclick = "speedX = ( speedX ? 0 : 5 )" /><br />
<input type = "button" value = "Rotate-Y" onclick = "speedY = ( speedY ? 0 : 5 )" /><br />
<input type = "button" value = "Rotate-Z" onclick = "speedZ = ( speedZ ? 0 : 5 )" /><br />
<br />
<input type = "button" value = "Scale Up" onclick = "scale = ( scale * 10 / 9 )" /><br />
<input type = "button" value = "Scale Down" onclick = "scale = ( scale * 9 / 10 )" />
</div>
<object id = "drawing" style = " position: absolute; z-index: 2; width: 200; height: 300;"
classid = "CLSID:369303C2-D7AC-11d0-89D5-00A0C90833E6">
<param name = "Line0004" value = "Oval( -25, -100, 50, 50, 0 )" />
<param name = "Line0006" value = "PolyLine( 3, -30, -25, 0, -15, 30, -25 )" />
<param name = "Line0007" value = "PolyLine( 3, -15, 90, 0, 50, 15, 90 )" />
<param name = "Line0013" value = "SetFont( 'Courier', 25, 200, 0, 0, 0 )" />
<param name = "Line0014" value = "Text( 'Hello', -35, -115 , 0 )" />
</object>
<object id = "background" style = " position:absolute; z-index: 1; width: 200; height: 300;
<param name = "Line0002" value = "Oval( -75, -125, 150, 250, 0 )" />
</object>
</body>
</html>