Archive Browser
Download ScriptingHost-Jint3.zip, last updated 31/08/2020 (148.60 KB)
Download- md5: b024e3fc7125b05e7ec5eb5e5330f838
- sha1: ce3d14820a647e3eb4588bf606b97047464041e9
- sha256: d68e1b14e0da47d405e8cda8439a07ff45dff6adcdd992397fa190293e76edf6
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