Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #17450

Re: No Function Google Script

From Stefan Weiss <krewecherl@gmail.com>
Newsgroups comp.lang.javascript
Subject Re: No Function Google Script
Date 2012-12-04 09:35 +0100
Organization albasani.net
Message-ID <k9kckb$964$1@news.albasani.net> (permalink)
References <e4354d0c-6035-437c-9bb4-fe138c989387@googlegroups.com>

Show all headers | View raw


On 2012-12-04 06:19, k wrote:
> I am trying to save this as a web app to attach to Google sites but
> it says I need a function can some one please help me understand and
> change my code to make it work.
> 
> var y=178;
> var draw = function() {
>     background(133, 142, 245);
>     textSize(40);
>     text("Snow",70,180);
> //cloud
> noStroke();
> ellipse(93,10,100,100);
[snip rest]

None of the functions background(), textSize, text(), noStroke(),
ellipse(), etc, are native JavaScript. This looks like Processing.js;
did you forget to load a library?

By the way,

> for (var i = 0; i < 1; i+=1){

this loop is pointless, it just means "do once".


- stefan

Back to comp.lang.javascript | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

No Function Google Script k <kalezwe@gmail.com> - 2012-12-03 21:19 -0800
  Re: No Function Google Script Stefan Weiss <krewecherl@gmail.com> - 2012-12-04 09:35 +0100

csiph-web