Rainbow Circle

in #art6 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!

Coin Marketplace

STEEM 0.20
TRX 0.14
JST 0.030
BTC 67698.91
ETH 3266.83
USDT 1.00
SBD 2.64