Skip to content

Commit a6a333c

Browse files
committed
Setup initial state of GitHub repository, starting from the bitbucket files
0 parents  commit a6a333c

File tree

490 files changed

+113671
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

490 files changed

+113671
-0
lines changed

.project

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>glowscript</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
10+
<triggers>clean,full,incremental,</triggers>
11+
<arguments>
12+
</arguments>
13+
</buildCommand>
14+
<buildCommand>
15+
<name>org.python.pydev.PyDevBuilder</name>
16+
<arguments>
17+
</arguments>
18+
</buildCommand>
19+
<buildCommand>
20+
<name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
21+
<triggers>full,incremental,</triggers>
22+
<arguments>
23+
</arguments>
24+
</buildCommand>
25+
</buildSpec>
26+
<natures>
27+
<nature>org.python.pydev.pythonNature</nature>
28+
<nature>org.eclipse.cdt.core.cnature</nature>
29+
<nature>org.eclipse.cdt.core.ccnature</nature>
30+
<nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
31+
<nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
32+
</natures>
33+
</projectDescription>

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
GlowScript makes it easy to write programs in JavaScript, CoffeeScript, RapydScript (a Python look-alike that compiles Python to JavaScript), or VPython (which uses the RapydScript compiler) that generate navigable real-time 3D animations, using the WebGL 3D graphics library available in modern browsers (with modern GPU-based graphics cards). For example, the following complete program creates a 3D canvas in the browser, displays a white 3D cube, creates default lighting, places the camera so that the cube fills the scene, and enables mouse controls to rotate and zoom the camera:
2+
3+
box()
4+
5+
That's it. That's the whole program (except for the GlowScript version header line that is supplied automatically). The key point is that lots of sensible defaults are built into the GlowScript library. You can of course specify the canvas size, the color and other attributes of the objects, the direction of the camera view, etc.
6+
7+
Full documentation for users is provided: at glowscript.org, click Help at the upper right or click VPython Help. There is an extensive set of example programs available from the first page of glowscript.org. Programs can be created and stored at glowscript.org, but it is also possible to export a program to place on your own web page, or use the GlowScript library without storing the program at glowscript.org. For programs stored at glowscript.org, you can share a link with someone and they can run your program simply by clicking on the link. Here is an example:
8+
9+
http://www.glowscript.org/#/user/GlowScriptDemos/folder/Examples/program/Bounce
10+
11+
GlowScript was inspired by VPython and has similar syntax. The project was begun in 2011 by David Scherer and Bruce Sherwood.

app.yaml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
application: glowscript
2+
version: 1
3+
runtime: python27
4+
api_version: 1
5+
threadsafe: true
6+
7+
builtins:
8+
- admin_redirect: on
9+
10+
handlers:
11+
- url: /css
12+
static_dir: css
13+
14+
- url: /
15+
static_files: ide/index.html
16+
upload: ide/index.html
17+
18+
- url: /ide.js
19+
static_files: ide/ide.js
20+
upload: ide/ide.js
21+
22+
- url: /lib
23+
static_dir: lib
24+
25+
- url: /package
26+
static_dir: package
27+
28+
- url: /docs
29+
static_dir: docs
30+
31+
- url: /api/.*
32+
script: ide.api.app
33+
34+
- url: /favicon\.ico
35+
static_files: static/images/favicon.ico
36+
upload: static/images/favicon\.ico
37+
38+
- url: /untrusted
39+
static_dir: untrusted

build-tools/Symbols.js

Lines changed: 154 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,154 @@
1+
GlowScript 1.1
2+
var ver = glowscript.version
3+
4+
console.log( glowscript.glowscript )
5+
6+
var names = [ "$", "jQuery", "console", "scene", "__context" ]
7+
8+
$.each( glowscript, function(name,value) {
9+
if (window.hasOwnProperty(name))
10+
names.push( name )
11+
})
12+
13+
// Got this from recent jshint.
14+
var standardBrowserNames = {
15+
MathJax : false, // for math displays
16+
alert : false,
17+
ArrayBuffer : false,
18+
ArrayBufferView : false,
19+
Audio : false,
20+
addEventListener : false,
21+
applicationCache : false,
22+
blur : false,
23+
clearInterval : false,
24+
clearTimeout : false,
25+
close : false,
26+
closed : false,
27+
DataView : false,
28+
defaultStatus : false,
29+
document : false,
30+
event : false,
31+
FileReader : false,
32+
Float32Array : false,
33+
Float64Array : false,
34+
FormData : false,
35+
focus : false,
36+
frames : false,
37+
getComputedStyle : false,
38+
HTMLElement : false,
39+
HTMLAnchorElement : false,
40+
HTMLBaseElement : false,
41+
HTMLBlockquoteElement : false,
42+
HTMLBodyElement : false,
43+
HTMLBRElement : false,
44+
HTMLButtonElement : false,
45+
HTMLCanvasElement : false,
46+
HTMLDirectoryElement : false,
47+
HTMLDivElement : false,
48+
HTMLDListElement : false,
49+
HTMLFieldSetElement : false,
50+
HTMLFontElement : false,
51+
HTMLFormElement : false,
52+
HTMLFrameElement : false,
53+
HTMLFrameSetElement : false,
54+
HTMLHeadElement : false,
55+
HTMLHeadingElement : false,
56+
HTMLHRElement : false,
57+
HTMLHtmlElement : false,
58+
HTMLIFrameElement : false,
59+
HTMLImageElement : false,
60+
HTMLInputElement : false,
61+
HTMLIsIndexElement : false,
62+
HTMLLabelElement : false,
63+
HTMLLayerElement : false,
64+
HTMLLegendElement : false,
65+
HTMLLIElement : false,
66+
HTMLLinkElement : false,
67+
HTMLMapElement : false,
68+
HTMLMenuElement : false,
69+
HTMLMetaElement : false,
70+
HTMLModElement : false,
71+
HTMLObjectElement : false,
72+
HTMLOListElement : false,
73+
HTMLOptGroupElement : false,
74+
HTMLOptionElement : false,
75+
HTMLParagraphElement : false,
76+
HTMLParamElement : false,
77+
HTMLPreElement : false,
78+
HTMLQuoteElement : false,
79+
HTMLScriptElement : false,
80+
HTMLSelectElement : false,
81+
HTMLStyleElement : false,
82+
HTMLTableCaptionElement : false,
83+
HTMLTableCellElement : false,
84+
HTMLTableColElement : false,
85+
HTMLTableElement : false,
86+
HTMLTableRowElement : false,
87+
HTMLTableSectionElement : false,
88+
HTMLTextAreaElement : false,
89+
HTMLTitleElement : false,
90+
HTMLUListElement : false,
91+
HTMLVideoElement : false,
92+
history : false,
93+
Int16Array : false,
94+
Int32Array : false,
95+
Int8Array : false,
96+
Image : false,
97+
length : false,
98+
localStorage : false,
99+
location : false,
100+
moveBy : false,
101+
moveTo : false,
102+
name : false,
103+
navigator : false,
104+
onbeforeunload : true,
105+
onblur : true,
106+
onerror : true,
107+
onfocus : true,
108+
onload : true,
109+
onresize : true,
110+
onunload : true,
111+
open : false,
112+
openDatabase : false,
113+
opener : false,
114+
Option : false,
115+
parent : false,
116+
print : false,
117+
removeEventListener : false,
118+
resizeBy : false,
119+
resizeTo : false,
120+
screen : false,
121+
scroll : false,
122+
scrollBy : false,
123+
scrollTo : false,
124+
sessionStorage : false,
125+
setInterval : false,
126+
setTimeout : false,
127+
SharedWorker : false,
128+
status : false,
129+
top : false,
130+
Uint16Array : false,
131+
Uint32Array : false,
132+
Uint8Array : false,
133+
WebSocket : false,
134+
window : false,
135+
Worker : false,
136+
XMLHttpRequest : false,
137+
XPathEvaluator : false,
138+
XPathException : false,
139+
XPathExpression : false,
140+
XPathNamespace : false,
141+
XPathNSResolver : false,
142+
XPathResult : false
143+
}
144+
145+
for(var id in standardBrowserNames)
146+
names.push( id )
147+
148+
names = $.map(names, function(v,i) { return '"'+v+'"' })
149+
150+
var prog = ('/* Generated code */\n;(function() {\n\t"use strict";\n\twindow["GlowscriptLibraryNames"] = [\n\t\t\t'
151+
+ names.join(',')
152+
+ ']\n})()')
153+
154+
$("<pre/>").appendTo(canvas.container).text( prog )

0 commit comments

Comments
 (0)