Web Site: http://virtualgs.larwe.com/gsbasic/
Download: http://virtualgs.larwe.com/gsbasic.zip
It added the new Lores routine by John B. Matthews and a new Lores
demo.
http://retromaccast.ning.com/photo/photo/show?id=1672786%3APhoto%3A28749
Delightful! Here's a small change people might find appealing: In
index.html, I replaced the input text field
<input id="file" type="text" size="30">
with a selection list
<select id="file" onChange="run(this.options[this.selectedIndex].value)">
<option value="ball">ball</option>
<option value="colors">colors</option>
<option value="commands">commands</option>
<option value="demo">demo</option>
<option value="gs">gs</option>
<option value="gscolors">gscolors</option>
<option value="gspics">gspics</option>
<option value="home">home</option>
<option value="lores">lores</option>
<option value="readme">readme</option>
<option value="ufo">ufo</option>
</select>
--
John B. Matthews
trashgod at gmail dot com
home dot woh dot rr dot com slash jbmatthews
> > Delightful! Here's a small change people might find appealing: In
> > index.html, I replaced the input text field
> >
> > <input id="file" type="text" size="30">
> >
> > with a selection list
> >
> > <select id="file" onChange="run(this.options[this.selectedIndex].value)">
> > <option value="ball">ball</option>
> > <option value="colors">colors</option>
> > <option value="commands">commands</option>
> > <option value="demo">demo</option>
> > <option value="gs">gs</option>
> > <option value="gscolors">gscolors</option>
> > <option value="gspics">gspics</option>
> > <option value="home">home</option>
> > <option value="lores">lores</option>
> > <option value="readme">readme</option>
> > <option value="ufo">ufo</option>
> > </select>
> Thinking of doing this too... convenient. But how does a user key in
> their own script name when he writes a new script? Any idea?
I'd just modify the list. An alternative might be to keep the field and
have the selection update it. I couldn't find a clean way to glob the
scripts directory, but it appears possible.
BTW, <http://virtualgs.larwe.com/gsbasic/> asks for names, but it
doesn't list the names of the available scripts.
We need some form of method for user to key in new script name, not
just playing with existing scripts (which is fun only for a little
while). The goal is to have an environment which we can run new
scripts easily. Any suggestions are welcome.
> I wanted to put your name in the credit below, so I move the list to
> the readme file (the readme button is on top right).
I'm flattered! But feel free to move me to a "Contributors" page:-)
> We need some form of method for user to key in new script name, not
> just playing with existing scripts (which is fun only for a little
> while). The goal is to have an environment which we can run new
> scripts easily. Any suggestions are welcome.
Why not both?
function runCombo() {
var file = document.getElementById("combo").value;
document.getElementById("script").src = "run.html?file=" + file;
}
...
Script <input id="file" type="text" size="30">
<select id="combo" onChange="runCombo()">
<option value="ball">ball</option>
<option value="colors">colors</option>
<option value="commands">commands</option>
<option value="demo">demo</option>
<option value="gs">gs</option>
<option value="gscolors">gscolors</option>
<option value="gspics">gspics</option>
<option value="home">home</option>
<option value="lores">lores</option>
<option value="readme">readme</option>
<option value="ufo">ufo</option>
</select>
...
Oops, forgot to update the file element, so "list" will work:
function runCombo() {
var file = document.getElementById("combo").value;
document.getElementById("file").value = file;
document.getElementById("script").src = "run.html?file=" + file;
}
I have uploaded GScript BASIC 1.2.3, together with some new Lores
demos.
The new change is to support gr(), color= which uses the new Lores
color palette.