[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: GScript widget for Mac OS X released
I have updated GScript BASIC to use gr() and color= for Lores mode.
This is your code http://virtualgs.larwe.com/gsbasic/scripts/lrdemo.js
// Lores Demo by John B. Matthews
gr()
inverse()
print(" Lores Demo ")
normal()
print("By John B. Matthews")
draw1()
animate(draw2)
function draw1() {
for (p = 0; p < 39; p++) {
color = rnd(15) + 1
plot(0, p)
plot(p, 0)
plot(39, p)
plot(p, 39)
plot(p, p)
plot(39 - p, p)
}
}
function draw2() {
x1 = rnd(40)
y1 = rnd(40)
x2 = rnd(40)
y2 = rnd(40)
color = rnd(15) + 1
hlin(x1, x2, y1)
hlin(x1, x2, y2)
vlin(y1, y2, x1)
vlin(y1, y2, x2);
}
On 8月29日, 上午3时32分, "John B. Matthews" <nos...@nospam.invalid> wrote:
> Thanks! I remembered some of the numbers, but I didn't know about names.
> I've updated my screenshot and included the code that produced it:
>
> <http://home.woh.rr.com/jbmatthews/a2/lores.html>
>
> --
> John B. Matthews
> trashgod at gmail dot com
> home dot woh dot rr dot com slash jbmatthews