6:39 PM
Manufactured by pLabs Entertainment © 2023
Circle Constructor

# This program generates a circle

<DOCTYPE>
<html>
<body>
<div id="pScreen"></div>
</body>
</html>

# This program generates a circle

<DOCTYPE>
<html>
<body>
<div id="pScreen"></div>
</body>
</html>

# This program generates a circle

for(o=0;o<60;o++){
pScreen.innerHTML+="<div id='o"+o+"' style='position:absolute;top:"+Math.cos(o/8.4)*120+200+"px;left:"+Math.sin(o/8.4)*120+180+"px;color:lightblue;''></div>";
}

function set(){

for(oz = 1; oz <= 59; oz++){
with(Math){
eval('o'+oz).style.top = sin((oz)/9.4)*120+250+"px";
eval('o'+oz).style.left = cos((oz)/9.4)*120+397+"px";
}}
}set();
# This program generates a circle




<DOCTYPE>
<html>
<body>
<div id="pScreen"></div>
</body>
</html>

# This program generates a circle
OBJ Output

<div id="pScreen"></div>

#pLabs 3D models


Views: 739 | Added by: pluser27 | Tags: simple, Program Design, math | Rating: 5.0/1
Total comments: 0
avatar