<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">

  <!-- PLEASE NO CHANGES BELOW THIS LINE (UNTIL I SAY SO) -->
  <script language="javascript" type="text/javascript" src="libraries/p5.min.js"></script>
  <script language="javascript" type="text/javascript" src="RGBOPacity.js"></script>
  <!-- OK, YOU CAN MAKE CHANGES BELOW THIS LINE AGAIN -->

  <!-- This line removes any default padding and style.
       You might only need one of these values set. -->
  <style> body { padding: 0; margin: 0; } </style>
</head>

<body>
</body>
</html>
function setup() {
  createCanvas(480, 120);
  noStroke();

}


function draw() {
background( 204, 226, 225); // Light blue color 
fill( 255, 0, 0, 160); // Red color 
ellipse( 132, 82, 200, 200); // Red circle 
fill( 0, 255, 0, 160); // Green color 
ellipse( 228, -16, 200, 200); // Green circle 
fill( 0, 0, 255, 160); // Blue color 
ellipse( 268, 118, 200, 200); // Blue circle

}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

  1. https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.2.0/p5.min.js