From 1ad72d5276b1876bf218336a1ff47f086a0834c9 Mon Sep 17 00:00:00 2001
From: scuri
void cdCanvasLine(cdCanvas* canvas, int x1, int y1, int x2, int y2); [in C]
+void cdCanvasLine(cdCanvas* canvas, int x1, int y1, int x2, int y2); [in C]
void cdfCanvasLine(cdCanvas* canvas, double x1, double y1, double x2, double y2); [in C]
void wdCanvasLine(cdCanvas* canvas, double x1, double y1, double x2, double y2); (WC) [in C]
canvas:Line(x1, y1, x2, y2: number) [in Lua]
@@ -31,7 +31,7 @@ canvas:wLine(x1, y1, x2, y2: number) (WC) [in Lua]
the current foreground color and line width and style. Both points are
included in the line.
-Polygons and Bezier Lines
+
Polygons and Bezier Lines
Open polygons can be created using cdBegin(CD_OPEN_LINES)/cdVertex(x,y)/.../cdEnd().
Closed polygons use the same number of vertices but the last point is
@@ -44,7 +44,7 @@ canvas:wLine(x1, y1, x2, y2: number) (WC) [in Lua]
bezier will be used as the start point.
See the documentation of cdBegin/cdVertex/cdEnd.
-void cdCanvasRect(cdCanvas* canvas, int xmin, int xmax, int ymin, int ymax); [in C]
void cdfCanvasRect(cdCanvas* canvas, double xmin, double xmax, double ymin, double ymax); [in C]
+
void cdCanvasRect(cdCanvas* canvas, int xmin, int xmax, int ymin, int ymax); [in C]
void cdfCanvasRect(cdCanvas* canvas, double xmin, double xmax, double ymin, double ymax); [in C]
void wdCanvasRect(cdCanvas* canvas, double xmin, double xmax, double ymin, double ymax); (WC) [in C]
canvas:Rect(xmin, xmax, ymin, ymax: number) [in Lua]
@@ -56,7 +56,7 @@ canvas:fRect(xmin, xmax, ymin, ymax: number) [in Lua]
canvas:wRect(x
If the active driver does not include this primitive, it will be simulated
using the cdLine primitive.
-void cdCanvasArc(cdCanvas* canvas, int xc, int yc, int w, int h, double angle1, double angle2); [in C]
void cdfCanvasArc(cdCanvas* canvas, double xc, double yc, double w, double h, double angle1, double angle2); [in C]
+
void cdCanvasArc(cdCanvas* canvas, int xc, int yc, int w, int h, double angle1, double angle2); [in C]
void cdfCanvasArc(cdCanvas* canvas, double xc, double yc, double w, double h, double angle1, double angle2); [in C]
void wdCanvasArc(cdCanvas* canvas, double xc, double yc, double w, double h, double angle1, double angle2); (WC) [in C]
canvas:Arc(xc, yc, w, h, angle1, angle2: number) [in Lua]
@@ -87,9 +87,9 @@ canvas:wArc(xc, yc, w, h, angle1, angle2: number) (WC) [in
to multiply the value in radians before passing the angle to CD.
Arc Parameters
-
+
Attributes
-int cdCanvasLineStyle(cdCanvas* canvas, int style); [in C]
+int cdCanvasLineStyle(cdCanvas* canvas, int style); [in C]
canvas:LineStyle(style: number) -> (old_style: number) [in Lua]
@@ -104,7 +104,7 @@ canvas:LineStyle(style: number) -> (old_style: number) [in
Line Styles
-void cdCanvasLineStyleDashes(cdCanvas* canvas, const int* dashes, int count); [in C]
+
void cdCanvasLineStyleDashes(cdCanvas* canvas, const int* dashes, int count); [in C]
canvas:LineStyleDashes(dashes: table, count: number) -> (old_style: number) [in Lua]
@@ -113,7 +113,7 @@ canvas:LineStyleDashes(dashes: table, count: number) -> (old_style: number) [
example: "10 2 5 2" means dash size 10, space size 2, dash size 5, space size
2, and repeats the pattern. Sizes are in pixels.
-int cdCanvasLineWidth(cdCanvas* canvas, int width); [in C]
double wdCanvasLineWidth(cdCanvas* canvas, double width_mm); (WC) [in C]
+
int cdCanvasLineWidth(cdCanvas* canvas, int width); [in C]
double wdCanvasLineWidth(cdCanvas* canvas, double width_mm); (WC) [in C]
canvas:LineWidth(width: number) -> (old_width: number) [in Lua]
canvas:wLineWidth(width_mm: number) -> (old_width_mm: number) (WC) [in Lua]
@@ -123,7 +123,7 @@ canvas:wLineWidth(width_mm: number) -> (old_width_mm: number) (WC) [in Lua]
current value. Valid width interval: >= 1.
In WC, it configures the current line width in millimeters.
-int cdCanvasLineJoin(cdCanvas* canvas, int style); [in C]
+
int cdCanvasLineJoin(cdCanvas* canvas, int style); [in C]
canvas:LineJoin(style: number) -> (old_style: number) [in Lua]
@@ -134,7 +134,7 @@ canvas:LineJoin(style: number) -> (old_style: number) [in Lua]
Line Joins
-int cdCanvasLineCap(cdCanvas* canvas, int style); [in C]
+
int cdCanvasLineCap(cdCanvas* canvas, int style); [in C]
canvas:LineCap(style: number) -> (old_style: number) [in Lua]
@@ -145,7 +145,7 @@ canvas:LineCap(style: number) -> (old_style: number) [in Lua]
Line Caps
-
+