<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.spheredev.org/index.php?action=history&amp;feed=atom&amp;title=Legacy%3AFunctions%2FPrimitives</id>
	<title>Legacy:Functions/Primitives - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.spheredev.org/index.php?action=history&amp;feed=atom&amp;title=Legacy%3AFunctions%2FPrimitives"/>
	<link rel="alternate" type="text/html" href="http://wiki.spheredev.org/index.php?title=Legacy:Functions/Primitives&amp;action=history"/>
	<updated>2026-11-08T01:02:23Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>http://wiki.spheredev.org/index.php?title=Legacy:Functions/Primitives&amp;diff=523&amp;oldid=prev</id>
		<title>Apollolux: created</title>
		<link rel="alternate" type="text/html" href="http://wiki.spheredev.org/index.php?title=Legacy:Functions/Primitives&amp;diff=523&amp;oldid=prev"/>
		<updated>2013-05-30T23:00:24Z</updated>

		<summary type="html">&lt;p&gt;created&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;NOTE:&amp;#039;&amp;#039;&amp;#039; Be sure to use [[API:FlipScreen|FlipScreen]]() when you are done drawing.&lt;br /&gt;
&lt;br /&gt;
* [[API:Point|Point]](&amp;#039;&amp;#039;x&amp;#039;&amp;#039;, &amp;#039;&amp;#039;y&amp;#039;&amp;#039;, &amp;#039;&amp;#039;color&amp;#039;&amp;#039;): Plot a point with &amp;#039;&amp;#039;color&amp;#039;&amp;#039;.&lt;br /&gt;
* [[API:PointSeries|PointSeries]](&amp;#039;&amp;#039;array&amp;#039;&amp;#039;, &amp;#039;&amp;#039;color&amp;#039;): Plot a series of points from an array of objects using &amp;#039;&amp;#039;color&amp;#039;&amp;#039;.&lt;br /&gt;
* [[API:Line|Line]](&amp;#039;&amp;#039;x1&amp;#039;&amp;#039;, &amp;#039;&amp;#039;y1&amp;#039;&amp;#039;, &amp;#039;&amp;#039;x2&amp;#039;&amp;#039;, &amp;#039;&amp;#039;y2&amp;#039;&amp;#039;, &amp;#039;&amp;#039;color&amp;#039;&amp;#039;): Draw a line with &amp;#039;&amp;#039;color&amp;#039;&amp;#039;.&lt;br /&gt;
* [[API:GradientLine|GradientLine]](&amp;#039;&amp;#039;x1&amp;#039;&amp;#039;, &amp;#039;&amp;#039;y1&amp;#039;&amp;#039;, &amp;#039;&amp;#039;x2&amp;#039;&amp;#039;, &amp;#039;&amp;#039;y2&amp;#039;&amp;#039;, &amp;#039;&amp;#039;color1&amp;#039;&amp;#039;, &amp;#039;&amp;#039;color2&amp;#039;&amp;#039;): Draw a line that fades between colors.&lt;br /&gt;
* [[API:LineSeries|LineSeries]](&amp;#039;&amp;#039;array&amp;#039;&amp;#039;, &amp;#039;&amp;#039;color&amp;#039;&amp;#039; [, &amp;#039;&amp;#039;type&amp;#039;&amp;#039;]): Draws a series of lines from an array of objects using &amp;#039;&amp;#039;color&amp;#039;&amp;#039;&lt;br /&gt;
* [[API:BezierCurve|BezierCurve]](color, step, Ax, Ay, Bx, By, Cx, Cy [, Dx, Dy]): Draws a series of points of the given color along a Bezier curve from A to C, controlled by B (A&amp;#039;s control point) and D (optional, C&amp;#039;s control point).&lt;br /&gt;
*:	step (0, 1] controls how many points are plotted (smaller step == more points).&lt;br /&gt;
&lt;br /&gt;
* [[API:Polygon|Polygon]](array, color [, invert]): Draws a color-filled polygon using the array of objects (each object must have a &amp;#039;x&amp;#039; and &amp;#039;y&amp;#039; property).&lt;br /&gt;
*:	If invert is true, all points in the bounding box of the polygon, but not in the polygon will be colored.&lt;br /&gt;
&lt;br /&gt;
* [[API:Triangle|Triangle]](&amp;#039;&amp;#039;x1&amp;#039;&amp;#039;, &amp;#039;&amp;#039;y1&amp;#039;&amp;#039;, &amp;#039;&amp;#039;x2&amp;#039;&amp;#039;, &amp;#039;&amp;#039;y2&amp;#039;&amp;#039;, &amp;#039;&amp;#039;x3&amp;#039;&amp;#039;, &amp;#039;&amp;#039;y3&amp;#039;&amp;#039;, &amp;#039;&amp;#039;color&amp;#039;&amp;#039;): Draw a triangle with &amp;#039;&amp;#039;color&amp;#039;&amp;#039;.&lt;br /&gt;
* [[API:GradientTriangle|GradientTriangle]](&amp;#039;&amp;#039;x1&amp;#039;&amp;#039;, &amp;#039;&amp;#039;y1&amp;#039;&amp;#039;, &amp;#039;&amp;#039;x2&amp;#039;&amp;#039;, &amp;#039;&amp;#039;y2&amp;#039;&amp;#039;, &amp;#039;&amp;#039;x3&amp;#039;&amp;#039;, &amp;#039;&amp;#039;y3&amp;#039;&amp;#039;, &amp;#039;&amp;#039;color1&amp;#039;&amp;#039;, &amp;#039;&amp;#039;color2&amp;#039;&amp;#039;, &amp;#039;&amp;#039;color3&amp;#039;&amp;#039;): Draw a filled triangle that smoothly changes colors between the vertices.&lt;br /&gt;
&lt;br /&gt;
* [[API:Rectangle|Rectangle]](&amp;#039;&amp;#039;x&amp;#039;&amp;#039;, &amp;#039;&amp;#039;y&amp;#039;&amp;#039;, &amp;#039;&amp;#039;width&amp;#039;&amp;#039;, &amp;#039;&amp;#039;height&amp;#039;&amp;#039;, &amp;#039;&amp;#039;color&amp;#039;&amp;#039;): Draw a rectangle filled with &amp;#039;&amp;#039;color&amp;#039;&amp;#039;.&lt;br /&gt;
* [[API:OutlinedRectangle|OutlinedRectangle]](&amp;#039;&amp;#039;x&amp;#039;&amp;#039;, &amp;#039;&amp;#039;y&amp;#039;&amp;#039;, &amp;#039;&amp;#039;width&amp;#039;&amp;#039;, &amp;#039;&amp;#039;height&amp;#039;&amp;#039;, &amp;#039;&amp;#039;color&amp;#039;&amp;#039; [, &amp;#039;&amp;#039;size&amp;#039;&amp;#039;]): Draws the outline of a rectangle.&lt;br /&gt;
* [[API:GradientRectangle|GradientRectangle]](&amp;#039;&amp;#039;x&amp;#039;&amp;#039;, &amp;#039;&amp;#039;y&amp;#039;&amp;#039;, &amp;#039;&amp;#039;width&amp;#039;&amp;#039;, &amp;#039;&amp;#039;height&amp;#039;&amp;#039;, &amp;#039;&amp;#039;color_ul&amp;#039;&amp;#039;, &amp;#039;&amp;#039;color_ur&amp;#039;&amp;#039;, &amp;#039;&amp;#039;color_lr&amp;#039;&amp;#039;, &amp;#039;&amp;#039;color_ll&amp;#039;&amp;#039;): Draw a rectangle filled with gradient colors.&lt;br /&gt;
&lt;br /&gt;
* [[API:FilledCircle|FilledCircle]](&amp;#039;&amp;#039;x&amp;#039;&amp;#039;, &amp;#039;&amp;#039;y&amp;#039;&amp;#039;, &amp;#039;&amp;#039;radius&amp;#039;&amp;#039;, &amp;#039;&amp;#039;color&amp;#039;&amp;#039; [, &amp;#039;&amp;#039;antialias&amp;#039;&amp;#039;]): Draws a circle filled with &amp;#039;&amp;#039;color&amp;#039;&amp;#039;.&lt;br /&gt;
* [[API:OutlinedCircle|OutlinedCircle]](&amp;#039;&amp;#039;x&amp;#039;&amp;#039;, &amp;#039;&amp;#039;y&amp;#039;&amp;#039;, &amp;#039;&amp;#039;radius&amp;#039;&amp;#039;, &amp;#039;&amp;#039;color&amp;#039;&amp;#039; [, &amp;#039;&amp;#039;antialias&amp;#039;&amp;#039;]): Draws the outline of a circle with &amp;#039;&amp;#039;color&amp;#039;&amp;#039;.&lt;br /&gt;
* [[API:GradientCircle|GradientCircle]](&amp;#039;&amp;#039;x&amp;#039;&amp;#039;, &amp;#039;&amp;#039;y&amp;#039;&amp;#039;, &amp;#039;&amp;#039;radius&amp;#039;&amp;#039;, &amp;#039;&amp;#039;color1&amp;#039;&amp;#039;, &amp;#039;&amp;#039;color2&amp;#039;&amp;#039; [, &amp;#039;&amp;#039;antialias&amp;#039;&amp;#039;]): Draws a circle filled with gradient colors.&lt;br /&gt;
* [[API:FilledEllipse|FilledEllipse]](&amp;#039;&amp;#039;x&amp;#039;&amp;#039;, &amp;#039;&amp;#039;y&amp;#039;&amp;#039;, &amp;#039;&amp;#039;rx&amp;#039;&amp;#039;, &amp;#039;&amp;#039;ry&amp;#039;&amp;#039;, &amp;#039;&amp;#039;color&amp;#039;&amp;#039;): Draws an ellipse filled with &amp;#039;&amp;#039;color&amp;#039;&amp;#039;.&lt;br /&gt;
* [[API:OutlinedEllipse|OutlinedEllipse]](&amp;#039;&amp;#039;x&amp;#039;&amp;#039;, &amp;#039;&amp;#039;y&amp;#039;&amp;#039;, &amp;#039;&amp;#039;rx&amp;#039;&amp;#039;, &amp;#039;&amp;#039;ry&amp;#039;&amp;#039;, &amp;#039;&amp;#039;color&amp;#039;&amp;#039;): Draws the outline of an ellipse with &amp;#039;&amp;#039;color&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
* [[API:FilledComplex|FilledComplex]](rx, ry, rw, rh, cx, cy, cr, ca, cf, fill_empty, color1, color2): Draws a filled rectangle at (rx, ry) with rw width and rh height colored with &amp;#039;color1&amp;#039;, with a circle with the radius cr and the color &amp;#039;color2&amp;#039; drawn onto it.&lt;br /&gt;
*:	Part of the circle can be filled in by specifying the angular offset &amp;#039;ca&amp;#039; and angular size &amp;#039;cf&amp;#039;.&lt;br /&gt;
*:	If fill_empty is true, any part of the rectangle not filled by the arc will be filled with &amp;#039;color1&amp;#039; instead of being left transparent.&lt;br /&gt;
* [[API:OutlinedComplex|OutlinedComplex]](rx, ry, rw, rh, cx, cy, cr, color [, antialias]): Draws a filled rectangle at (rx, ry) with rw width and rh height colored with color, with a circle with the radius cr cut out at (cx, cy) onto the video buffer.&lt;br /&gt;
* [[API:GradientComplex|GradientComplex]](rx, ry, rw, rh, cx, cy, cr, ca, cf, fill_empty, color1, color2, color3): Similar to FilledComplex, but fills the circle/arc with a gradient from color2 (center) to color3 (edge). All other arguments are identical.&lt;/div&gt;</summary>
		<author><name>Apollolux</name></author>
	</entry>
</feed>