, Processing.js javascript, pde (java), .
* , javascript with(obj){code}, . .
, , , .
!:)
<html>
<head>
</head>
<body>
<canvas id="output-canvas"></canvas>
<script src="processing.1.4.8.js"></script>
<script> ( function () {
new Processing ( document.getElementById ( "output-canvas"), sketch );
function sketch ( pjs ) {
pjs.size ( 800, 600 );
pjs.background ( 255, 255, 255, 255 );
with ( pjs ) {
stroke ( 255, 0, 0 );
strokeWeight ( 5 );
fill ( 255, 240, 0 );
rect ( 50, 50, 300, 200 );
}
}
} ) (); </script>
</body>
</html>