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.30
TRX 0.12
JST 0.033
BTC 64513.89
ETH 3155.04
USDT 1.00
SBD 4.00