Draw a sphere: Difference between revisions
m
→{{header|ALGOL W}}: Tweaked characters used to make the shading slightly smoother
(Added solution for Action!) |
m (→{{header|ALGOL W}}: Tweaked characters used to make the shading slightly smoother) |
||
Line 316:
light( 3 ) := -59;
normalize( light );
drawSphere( 20, 4, 0.1, light, ".:!*oe
drawSphere( 10, 2, 0.4, light, ".:!*oe
end test
end.</lang>
{{out}}
<pre>
#
#
%#
%#
%#
%%##
%%##
&%%##
&%%%###
&%%%%####eeeeeeeeeeeeeeeeeeeeeeeeee########%%%%%%%%%&&&&&&&&&&&&&&&&&&&&&&&&&
▲ %###&&&&eeeeeooooooooooooooooooeeeeeeee&&&&&&&#########%%%%%%%%%%%%%%%%%%%%%%%%
&&%%%%####
&&%%%%%%####
&&&&%%%%%%%#####################%%%%%%%%%%%%%&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
▲ %%%%%%%%%%%%%%%%%
Line 385 ⟶ 384:
eeeeeeeeeeeeeeeeeeeee
eeeeeeeeeeeee
</pre>
|