APS Excellence in Physics Education Award
November 2019

Education Prize Logo
Science SPORE Prize
November 2011

NSF Logo
The Open Source Physics Project is supported by NSF DUE-0442581.

Color in Java Scripts

Return to the EJS Modeling forum
Login to post to this thread

Java versus Java Script
Fernando Silva Fernandes
10 Posts

In Java, declaring a variable (x) as an object:

x = Color.RED;

it's OK.

The same thing in Java Script gives the error :"Color is not defined".

How to do it in EJsS?


Current Replies - View all
Re: Java versus Java Scri...   (Wolfgang - )
Re: Re: Java versus Java ...   (Fernando Silva Fernandes - )
OSP Projects:
Open Source Physics - EJS Modeling
Tracker
Physlet Physics
Physlet Quantum Physics
STP Book