Skip to content

Instantly share code, notes, and snippets.

@edgalindo
Last active November 15, 2016 16:25
Show Gist options
  • Select an option

  • Save edgalindo/8832bcffa7d5b1008dba2ca05b55ae49 to your computer and use it in GitHub Desktop.

Select an option

Save edgalindo/8832bcffa7d5b1008dba2ca05b55ae49 to your computer and use it in GitHub Desktop.
function setup() {
colorMode(HSB, 260, 100, 100, 100);
createCanvas(300, 300);
var a = 150;
var x = 10;
while (a < 360) {
fill(a, 75, 100);
rect(x, 0, 15, height);
a+=3;
x +=15;
}
}
function draw() {
}
@ff6347
Copy link

ff6347 commented Nov 14, 2016

There is a } missing at the end. Also - if you give the file a extension (in our case .js) it will be color highlighted.

@ff6347
Copy link

ff6347 commented Nov 14, 2016

@edgalindo
Copy link
Author

Thx, for the advise:-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment