<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Drawing (geoml.Geoml__.Drawing)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="generator" content="odoc 1.5.1"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> â€“ <a href="../../index.html">geoml</a> &#x00BB; <a href="../index.html">Geoml__</a> &#x00BB; Drawing</nav><h1>Module <code>Geoml__.Drawing</code></h1></header><dl><dt class="spec value" id="val-iof"><a href="#val-iof" class="anchor"></a><code><span class="keyword">val</span> iof : float <span>&#45;&gt;</span> int</code></dt><dt class="spec value" id="val-soi"><a href="#val-soi" class="anchor"></a><code><span class="keyword">val</span> soi : int <span>&#45;&gt;</span> string</code></dt><dt class="spec value" id="val-point2pixel"><a href="#val-point2pixel" class="anchor"></a><code><span class="keyword">val</span> point2pixel : <a href="../../Geoml/Point/index.html#type-t">Geoml.Point.t</a> <span>&#45;&gt;</span> int * int</code></dt><dt class="spec value" id="val-moveto_p"><a href="#val-moveto_p" class="anchor"></a><code><span class="keyword">val</span> moveto_p : <a href="../../Geoml/Point/index.html#type-t">Geoml.Point.t</a> <span>&#45;&gt;</span> unit</code></dt><dt class="spec value" id="val-lineto_p"><a href="#val-lineto_p" class="anchor"></a><code><span class="keyword">val</span> lineto_p : <a href="../../Geoml/Point/index.html#type-t">Geoml.Point.t</a> <span>&#45;&gt;</span> unit</code></dt><dt class="spec value" id="val-open_graph"><a href="#val-open_graph" class="anchor"></a><code><span class="keyword">val</span> open_graph : float <span>&#45;&gt;</span> float <span>&#45;&gt;</span> string <span>&#45;&gt;</span> unit</code></dt><dt class="spec value" id="val-fill_screen"><a href="#val-fill_screen" class="anchor"></a><code><span class="keyword">val</span> fill_screen : Graphics.color <span>&#45;&gt;</span> unit</code></dt><dt class="spec value" id="val-clear"><a href="#val-clear" class="anchor"></a><code><span class="keyword">val</span> clear : unit <span>&#45;&gt;</span> unit</code></dt><dt class="spec value" id="val-screen"><a href="#val-screen" class="anchor"></a><code><span class="keyword">val</span> screen : unit <span>&#45;&gt;</span> <a href="../../Geoml/Rectangle/index.html#type-t">Geoml.Rectangle.t</a></code></dt><dt class="spec value" id="val-get_image"><a href="#val-get_image" class="anchor"></a><code><span class="keyword">val</span> get_image : float <span>&#45;&gt;</span> float <span>&#45;&gt;</span> Graphics.image</code></dt><dt class="spec value" id="val-red_c"><a href="#val-red_c" class="anchor"></a><code><span class="keyword">val</span> red_c : int <span>&#45;&gt;</span> int</code></dt><dt class="spec value" id="val-green_c"><a href="#val-green_c" class="anchor"></a><code><span class="keyword">val</span> green_c : int <span>&#45;&gt;</span> int</code></dt><dt class="spec value" id="val-blue_c"><a href="#val-blue_c" class="anchor"></a><code><span class="keyword">val</span> blue_c : int <span>&#45;&gt;</span> int</code></dt><dt class="spec value" id="val-to_ppm"><a href="#val-to_ppm" class="anchor"></a><code><span class="keyword">val</span> to_ppm : Graphics.image <span>&#45;&gt;</span> string <span>&#45;&gt;</span> unit</code></dt><dt class="spec value" id="val-draw_point"><a href="#val-draw_point" class="anchor"></a><code><span class="keyword">val</span> draw_point : <span>?&#8288;lw:int</span> <span>&#45;&gt;</span> <a href="../../Geoml/Point/index.html#type-t">Geoml.Point.t</a> <span>&#45;&gt;</span> Graphics.color <span>&#45;&gt;</span> unit</code></dt><dt class="spec value" id="val-draw_segment"><a href="#val-draw_segment" class="anchor"></a><code><span class="keyword">val</span> draw_segment : <span>?&#8288;lw:int</span> <span>&#45;&gt;</span> <a href="../../Geoml/Segment/index.html#type-t">Geoml.Segment.t</a> <span>&#45;&gt;</span> Graphics.color <span>&#45;&gt;</span> unit</code></dt><dt class="spec value" id="val-draw_vector"><a href="#val-draw_vector" class="anchor"></a><code><span class="keyword">val</span> draw_vector : <span>?&#8288;lw:int</span> <span>&#45;&gt;</span> <a href="../../Geoml/Vector/index.html#type-t">Geoml.Vector.t</a> <span>&#45;&gt;</span> <a href="../../Geoml/Point/index.html#type-t">Geoml.Point.t</a> <span>&#45;&gt;</span> Graphics.color <span>&#45;&gt;</span> unit</code></dt><dt class="spec value" id="val-draw_dashed_segment"><a href="#val-draw_dashed_segment" class="anchor"></a><code><span class="keyword">val</span> draw_dashed_segment : <span>?&#8288;lw:int</span> <span>&#45;&gt;</span> <a href="../../Geoml/Segment/index.html#type-t">Geoml.Segment.t</a> <span>&#45;&gt;</span> Graphics.color <span>&#45;&gt;</span> unit</code></dt><dt class="spec value" id="val-draw_line"><a href="#val-draw_line" class="anchor"></a><code><span class="keyword">val</span> draw_line : <span>?&#8288;lw:int</span> <span>&#45;&gt;</span> <span>?&#8288;dashed:bool</span> <span>&#45;&gt;</span> <a href="../../Geoml/Line/index.html#type-t">Geoml.Line.t</a> <span>&#45;&gt;</span> Graphics.color <span>&#45;&gt;</span> unit</code></dt><dt class="spec value" id="val-draw_constraint"><a href="#val-draw_constraint" class="anchor"></a><code><span class="keyword">val</span> draw_constraint : <span>?&#8288;lw:int</span> <span>&#45;&gt;</span> <a href="../../Geoml/Constraint/index.html#type-t">Geoml.Constraint.t</a> <span>&#45;&gt;</span> Graphics.color <span>&#45;&gt;</span> unit</code></dt><dt class="spec value" id="val-draw_circle"><a href="#val-draw_circle" class="anchor"></a><code><span class="keyword">val</span> draw_circle : <span>?&#8288;lw:int</span> <span>&#45;&gt;</span> <a href="../../Geoml/Circle/index.html#type-t">Geoml.Circle.t</a> <span>&#45;&gt;</span> Graphics.color <span>&#45;&gt;</span> unit</code></dt><dt class="spec value" id="val-fill_circle"><a href="#val-fill_circle" class="anchor"></a><code><span class="keyword">val</span> fill_circle : <span>?&#8288;lw:int</span> <span>&#45;&gt;</span> <a href="../../Geoml/Circle/index.html#type-t">Geoml.Circle.t</a> <span>&#45;&gt;</span> Graphics.color <span>&#45;&gt;</span> unit</code></dt><dt class="spec value" id="val-draw_triangle"><a href="#val-draw_triangle" class="anchor"></a><code><span class="keyword">val</span> draw_triangle : <span>?&#8288;lw:int</span> <span>&#45;&gt;</span> <a href="../../Geoml/Triangle/index.html#type-t">Geoml.Triangle.t</a> <span>&#45;&gt;</span> Graphics.color <span>&#45;&gt;</span> unit</code></dt><dt class="spec value" id="val-draw_rectangle"><a href="#val-draw_rectangle" class="anchor"></a><code><span class="keyword">val</span> draw_rectangle : <span>?&#8288;lw:int</span> <span>&#45;&gt;</span> <a href="../../Geoml/Rectangle/index.html#type-t">Geoml.Rectangle.t</a> <span>&#45;&gt;</span> Graphics.color <span>&#45;&gt;</span> unit</code></dt><dt class="spec value" id="val-draw_ellipse"><a href="#val-draw_ellipse" class="anchor"></a><code><span class="keyword">val</span> draw_ellipse : <span>?&#8288;lw:int</span> <span>&#45;&gt;</span> <a href="../Ellipse/index.html#type-t">Geoml__.Ellipse.t</a> <span>&#45;&gt;</span> Graphics.color <span>&#45;&gt;</span> unit</code></dt><dt class="spec value" id="val-draw_regular"><a href="#val-draw_regular" class="anchor"></a><code><span class="keyword">val</span> draw_regular : <span>?&#8288;lw:int</span> <span>&#45;&gt;</span> <a href="../../Geoml/Polygon/Convex/Regular/index.html#type-t">Geoml.Polygon.Convex.Regular.t</a> <span>&#45;&gt;</span> Graphics.color <span>&#45;&gt;</span> unit</code></dt><dt class="spec value" id="val-draw_polygon"><a href="#val-draw_polygon" class="anchor"></a><code><span class="keyword">val</span> draw_polygon : <span>?&#8288;lw:int</span> <span>&#45;&gt;</span> <a href="../../Geoml/Polygon/index.html#type-t">Geoml.Polygon.t</a> <span>&#45;&gt;</span> Graphics.color <span>&#45;&gt;</span> unit</code></dt><dt class="spec value" id="val-fill_polygon"><a href="#val-fill_polygon" class="anchor"></a><code><span class="keyword">val</span> fill_polygon : <span>?&#8288;lw:int</span> <span>&#45;&gt;</span> <a href="../../Geoml/Polygon/index.html#type-t">Geoml.Polygon.t</a> <span>&#45;&gt;</span> Graphics.color <span>&#45;&gt;</span> unit</code></dt><dt class="spec value" id="val-draw_convex_polygon"><a href="#val-draw_convex_polygon" class="anchor"></a><code><span class="keyword">val</span> draw_convex_polygon : <span>?&#8288;lw:int</span> <span>&#45;&gt;</span> <a href="../../Geoml/Polygon/Convex/index.html#type-t">Geoml.Polygon.Convex.t</a> <span>&#45;&gt;</span> Graphics.color <span>&#45;&gt;</span> unit</code></dt><dt class="spec value" id="val-fill_convex_polygon"><a href="#val-fill_convex_polygon" class="anchor"></a><code><span class="keyword">val</span> fill_convex_polygon : <span>?&#8288;lw:int</span> <span>&#45;&gt;</span> <a href="../../Geoml/Polygon/Convex/index.html#type-t">Geoml.Polygon.Convex.t</a> <span>&#45;&gt;</span> Graphics.color <span>&#45;&gt;</span> unit</code></dt><dt class="spec value" id="val-draw_polyhedron"><a href="#val-draw_polyhedron" class="anchor"></a><code><span class="keyword">val</span> draw_polyhedron : <span>?&#8288;lw:int</span> <span>&#45;&gt;</span> <a href="../../Geoml/Polyhedron/index.html#type-t">Geoml.Polyhedron.t</a> <span>&#45;&gt;</span> Graphics.color <span>&#45;&gt;</span> unit</code></dt><dt class="spec value" id="val-fill_polyhedron"><a href="#val-fill_polyhedron" class="anchor"></a><code><span class="keyword">val</span> fill_polyhedron : <span>?&#8288;lw:int</span> <span>&#45;&gt;</span> <a href="../../Geoml/Polyhedron/index.html#type-t">Geoml.Polyhedron.t</a> <span>&#45;&gt;</span> Graphics.color <span>&#45;&gt;</span> unit</code></dt><dt class="spec value" id="val-draw_polynom"><a href="#val-draw_polynom" class="anchor"></a><code><span class="keyword">val</span> draw_polynom : <span>?&#8288;lw:int</span> <span>&#45;&gt;</span> <a href="../Polynom/index.html#type-t">Geoml__.Polynom.t</a> <span>&#45;&gt;</span> Graphics.color <span>&#45;&gt;</span> unit</code></dt><dt class="spec value" id="val-draw_quadratic_curve"><a href="#val-draw_quadratic_curve" class="anchor"></a><code><span class="keyword">val</span> draw_quadratic_curve : <span>?&#8288;lw:int</span> <span>&#45;&gt;</span> <a href="../../Geoml__Curve/Quadratic/index.html#type-t">Geoml__.Curve.Quadratic.t</a> <span>&#45;&gt;</span> Graphics.color <span>&#45;&gt;</span> unit</code></dt><dt class="spec value" id="val-draw_cubic_curve"><a href="#val-draw_cubic_curve" class="anchor"></a><code><span class="keyword">val</span> draw_cubic_curve : <span>?&#8288;lw:int</span> <span>&#45;&gt;</span> <a href="../../Geoml__Curve/Cubic/index.html#type-t">Geoml__.Curve.Cubic.t</a> <span>&#45;&gt;</span> Graphics.color <span>&#45;&gt;</span> unit</code></dt><dt class="spec value" id="val-draw_bspline"><a href="#val-draw_bspline" class="anchor"></a><code><span class="keyword">val</span> draw_bspline : <span>?&#8288;lw:int</span> <span>&#45;&gt;</span> <a href="../../Geoml__Curve/BSpline/index.html#type-t">Geoml__.Curve.BSpline.t</a> <span>&#45;&gt;</span> Graphics.color <span>&#45;&gt;</span> unit</code></dt><dt class="spec value" id="val-draw_string"><a href="#val-draw_string" class="anchor"></a><code><span class="keyword">val</span> draw_string : int <span>&#45;&gt;</span> int <span>&#45;&gt;</span> string <span>&#45;&gt;</span> Graphics.color <span>&#45;&gt;</span> unit</code></dt><dt class="spec value" id="val-draw_string_at_point"><a href="#val-draw_string_at_point" class="anchor"></a><code><span class="keyword">val</span> draw_string_at_point : <a href="../../Geoml/Point/index.html#type-t">Geoml.Point.t</a> <span>&#45;&gt;</span> string <span>&#45;&gt;</span> Graphics.color <span>&#45;&gt;</span> unit</code></dt></dl></div></body></html>