Rainbow Circle

in art •  6 years ago 

Let's begin with some colors

Nothing sensational but everyone likes rainbows, right?
I used javascript with the p5 library, here is the code:

function setup() {
  createCanvas(400, 400);
    colorMode(HSB, 360, 100, 100);
    noStroke();
}

function draw() {
  background(0, 0, 0);
    fill(0,0,100);
    for(let i = 0; i < 360; i++){
        fill(i, 100, 100);
        arc(200, 200, 400, 400, (i)/180 * PI, (i+1)/180 * PI);
    }
  noLoop()
}

I think p5.js is a simple way to draw basic things directly on your browser, if you want you can try it directly in your browser using the online editor.
I hope you enjoyed,

Stay tuned!

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!