Files
RCBASIC4/doc/files/opencanvas.html
2024-12-14 15:28:03 -05:00

35 lines
970 B
HTML

<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="style.css">
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
<title>OpenCanvas [RCBasic Doc] </title>
</head>
<body>
<p><h2>function OpenCanvas( w, h, viewport_x, viewport_y, viewport_w, viewport_h, mode) </h2></p>
<p>
Returns a canvas for 2D drawing and text rendering
</p>
<ul>
<li>
w, h - The full size of the canvas
</li>
<li>
viewport_x, viewport_y - Where to show the canvas in the window
</li>
<li>
viewport_w, viewport_h - The size of the viewport. For example, a 100 x 100 viewport means that no matter how big the canvas is, only an area of 100 x 100 pixels is displayed.
</li>
<li>
mode - Set this to 0 for a solid canvas and 1 for a color keyed canvas.
</li>
</ul>
<br><p>Related:
<a href="opencanvas3d.html">OpenCanvas3D</a>
<a href="opencanvasspritelayer.html">OpenCanvasSpriteLayer</a>
</p>
<p>
</body>
</html>