PointSeries

From Spheriki

Jump to: navigation, search

Plots a series of points with the specified color onto the video buffer.


Contents

Usage

PointSeries(array, color);
  • array Array of objects, each with an 'x' and 'y' property.
  • color The Sphere Color object to draw the points with.


Examples

var PointOne = {};
PointOne.x = 10;
PointOne.y = 20;
var PointTwo = {};
PointTwo.x = 40;
PointTwo.y = 80;
var ObjectArray = new Array();
ObjectArray.push(PointOne);
ObjectArray.push(PointTwo);

PointSeries(ObjectArray, CreateColor(0, 255, 0));

This will draw two green points on the screen, one at (10, 20) and the other at (40, 80).

Notes

Don't forget to call FlipScreen() after drawing anything onto the video buffer.


See also

Personal tools