Archive Browser
Download ScriptingHost-Jint2.zip, last updated 31/08/2020 (66.93 KB)
Download- md5: 3ee9967fdf782810e5e943f1b7e319f9
- sha1: 865279a70fc8634273c37a85ff8a5bffd21087c3
- sha256: 1a5c1588ba9e8f2390f5f3bd41f0c7f4b8c86feb65c9cf1b460aca49488addfc
var sy1;
var sy2;
var cy1;
var cy2;
var width = 128
var height = 64;
var third = height / 3;
var lineColor = color.FromArgb(102, 51, 153);
var lineColor2 = color.FromArgb(153, 51, 102);
picture.Width = width;
picture.Height = height;
picture.clear(color.White);
sy2 = third
cy2 = third * 2;
for(var i = 0; i < width; i++)
{
sy1 = third + Math.sin(i) * 10;
cy1 = (third * 2) + Math.cos(i) * 10;
picture.drawLine(i, sy2, i + 1, sy1, lineColor);
picture.drawLine(i, cy2, i + 1, cy1, lineColor2);
sy2 = sy1;
cy2 = cy1;
}
Donate
This software may be used free of charge, but as with all free software there are costs involved to develop and maintain.
If this site or its services have saved you time, please consider a donation to help with running costs and timely updates.
Donate