# Blendmode in Webgl

**URL:** https://discourse.processing.org/t/blendmode-in-webgl/32676
**Category:** p5.js
**Created:** [October 7, 2021, 5:42pm UTC](https://discourse.processing.org/t/blendmode-in-webgl/32676 "2021-10-07T17:42:09Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![rickard](https://avatars.discourse-cdn.com/v4/letter/r/73ab20/32.png) [@rickard](https://discourse.processing.org/u/rickard)
#### Post date: [October 7, 2021, 5:42pm UTC](https://discourse.processing.org/t/blendmode-in-webgl/32676/1 "2021-10-07T17:42:09Z")

</div>

Hi,

Not sure if i’m missing something complete obvious here but i’m not getting the blendMode to work when running a the sketch in webgl mode. Example code below.

````auto
function setup() {
  createCanvas(400, 400, WEBGL);
}

function draw() {
  background(0);
  blendMode(ADD);
  
  fill('#ff00ff');
  plane(60, 60);
  fill('#00ffff');
  plane(50, 50);
}```
````
