Unecpected token in code
in
Programming Questions
•
2 years ago
Hi, i wanna do something like this :
any ideas ?
Noise is king
This is my code :
- SpotLine mySpotL;
- void setup () {
- size ( 600, 900);
- smooth ();
- mySpotL = new SpotLine();
- }
- void draw () {
- background (0);
- mySpotL.display ();
- }
- Class SpotLine {
- // global vars
- float x = 0,
- float y = 0,
- // constructor
- SpotLine (){
- }
- // Functions
- void display (){
- for ( int i = width/30 ; i<width ; i+=width/30 ){
- ellipse ( i , 20 , 30,30 );
- }
- }
any ideas ?
thanx !
Noise is king
1